@php $admin = Auth::user(); $settings = $admin->settings ? json_decode($admin->settings) : (object)['theme' => 'light']; if (!isset($settings->theme)) { $settings->theme = 'light'; } @endphp