{{-- Shared tab bar for "Locum Payroll" — included at the top of: • locum/index, show, create, edit (Locum Staff register pages) • locum/shifts (Shift Entries page) • locum/payroll, payroll-show (Payroll page) • locum/payments (Payments page) Treats those pages as a single grouped tabset. Usage: @include('locum.partials.payroll-tabs', ['active' => 'shifts']) (active is one of: register, volunteers, shifts, payroll, payments) 'volunteers' is treated as a sub-mode of 'register' so the Locum Staff tab is highlighted on volunteer pages too — there is no separate top-level Volunteers tab. Tab visibility by role: - HR User / Hospital Admin / Super Admin: Locum Staff + Shifts + Payroll + Payments - Receptionist: Shifts + Payments (view-only) - Triage Nurse: Shifts only --}} @php $tabUser = Auth::user(); $tabRole = $tabUser ? $tabUser->activeRoleName() : ''; $tabIsAdmin = $tabUser && $tabUser->hasAnyRole('Super Admin', 'Hospital Admin', 'HR User'); $tabShowRegister = $tabIsAdmin; $tabShowPayroll = $tabIsAdmin; $tabShowPayments = $tabIsAdmin || $tabRole === 'Receptionist'; // Both register-mode and volunteers-mode highlight the Locum Staff tab. $tabRegisterActive = in_array(($active ?? ''), ['register', 'volunteers'], true); @endphp