{{ session('status') }}
@endif
@if($errors->any()){{ $errors->first() }}
@endif
@yield('content')
@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