{{ __('form.Payroll') }}

@can('create_payrollsalary', App\Models\PayrollSalary::class)
@endcan
{{-- Flash Alert --}} @if(session('success') || session('error'))
{{ session('success') ?? session('error') }}
@endif
@php $currentUser = auth()->user(); $hasPendingApproval = \App\Models\PayrollSalary::where('status', 'P') ->whereHas('approval.steps', function($q) use ($currentUser) { $q->where('status', 'active')->where(fn($sq) => $sq->where('approver_id', $currentUser->id)->orWhereIn('approver_role', $currentUser->getRoleNames())); })->exists(); @endphp
{{-- Search Form --}}
{{-- Action Buttons --}}
@if ($hasPendingApproval) @endif @can('create_payrollsalary', App\Models\PayrollSalary::class)
@csrf
@endcan
{{-- ===================== DESKTOP TABLE ===================== --}} {{-- ===================== VIRTUAL SCROLL MOBILE ===================== --}}