@if(auth()->user()->role === 'admin' && !request()->routeIs('pos.*')) @endif @php $notificationsEnabled = ($settings->enable_admin_notifications ?? true) && auth()->user()->role === 'admin'; $headerNotifications = $notificationsEnabled ? auth()->user()->unreadNotifications()->orderByDesc('created_at')->take(8)->get() : collect(); $headerUnreadNotificationsCount = $notificationsEnabled ? auth()->user()->unreadNotifications()->count() : 0; @endphp @if($notificationsEnabled)
@endif @once @endonce @php $userBranches = auth()->user()->role === 'admin' ? \App\Models\Branch::where('is_active', true)->get() : auth()->user()->branches()->where('is_active', true)->get(); $activeBranch = \App\Models\Branch::find(session('active_branch_id')); @endphp @if($userBranches->count() > 1 || auth()->user()->role === 'admin')

Ganti Cabang

@foreach($userBranches as $branch)
@csrf
@endforeach
@endif

{{ Auth::user()->name }}

{{ Auth::user()->role }}

Profile @if(auth()->user()->role === 'admin') System Settings @endif
@csrf