assign_new_device_id = Auth::user()->assign_new_device_id; $this->timezone = Auth::user()->timezone ?? config('app.timezone'); } public function updatePreferences(): void { $validated = $this->validate([ 'assign_new_device_id' => [ 'nullable', Rule::exists('devices', 'id')->where(function ($query) { $query->where('user_id', Auth::id()) ->whereNull('mirror_device_id'); }), ], 'timezone' => [ 'nullable', 'string', Rule::in(timezone_identifiers_list()), ], ]); Auth::user()->update($validated); $this->dispatch('profile-updated'); } }; ?>
@include('partials.settings-heading')
Select timezone... @foreach(timezone_identifiers_list() as $tz) {{ $tz }} @endforeach None @foreach(auth()->user()->devices->where('mirror_device_id', null) as $device) {{ $device->name }} ({{ $device->friendly_id }}) @endforeach
{{ __('Save') }}
{{ __('Saved.') }}