@php $notification_count = App\Models\Notification::where('user_id', Auth::user()->id)->where('from_id', '<>', Auth::user()->id)->count(); $tenant = App\Models\User::where('id', Auth::user()->creatorId())->first(); $tenant_setting = App\Models\Setting::where('user_id', $tenant->id)->first(); @endphp