@php $user = auth()->user(); $biz = \App\Models\Business::find($user->business_id); $branches = \App\Models\Branch::where('business_id', $user->business_id)->where('is_active', true)->get(); $activeBranchId = session('active_branch_id', $user->branch_id ?? $branches->first()?->id); $can = fn (string $perm) => \App\Support\Rbac::hasPermission($user->role, $perm); @endphp @yield('title', 'Business') — {{ $biz?->name ?? 'Winery POS' }} @stack('styles')

@yield('title', 'Dashboard')

@if($branches->count() > 1)
@csrf
@endif {{ $user->name }}
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif @yield('content')
@stack('scripts')