@php $countPendingOrganizations = 0; $count = 0; if (auth()->user()->hasRole('admin') || auth()->user()->is_admin || auth()->user()->is_root) { $count = \App\Models\ContactMessage::where('state', 0)->count(); $countPendingOrganizations = \App\Models\Organization::whereHas('user', function ($query) { $query->where('email_verified_at', null); })->count(); } @endphp