{{ __('Dashboard') }} - {{ date('F Y', mktime(0, 0, 0, $currentMonth, 1, $currentYear)) }}

{{-- Flash Messages --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Summary Cards --}}
{{-- Employees --}}
Total Employees
{{ $totalEmployees }}
@foreach($employeesByType as $type => $count) {{ $type }}: {{ $count }}
@endforeach
{{-- Gross Salary --}}
Gross Salary (This Month)
RM {{ number_format($payrollSummary['total_gross'], 2) }}
Commission: RM {{ number_format($payrollSummary['total_commission'], 2) }}
{{-- Net Salary --}}
Net Salary (This Month)
RM {{ number_format($payrollSummary['total_net'], 2) }}
{{ $payrollSummary['processed'] }} processed / {{ $payrollSummary['pending'] }} pending
{{-- Employer Cost --}}
Employer Statutory Cost
RM {{ number_format($payrollSummary['employer_statutory'], 2) }}
EPF + SOCSO + EIS (Basic Only)
{{-- Sales Summary --}}
Total Personal Sales
RM {{ number_format($salesSummary['total_personal'], 2) }}
Total Team Sales
RM {{ number_format($salesSummary['total_team'], 2) }}
{{-- Quick Actions --}} {{-- Recent Payrolls --}}

Recent Payroll Records

@if($recentPayrolls->count() > 0) @foreach($recentPayrolls as $payroll) @endforeach
Employee Period Gross Net Status
{{ $payroll->employee->name ?? '-' }} {{ $payroll->period_display }} RM {{ number_format($payroll->gross_salary, 2) }} RM {{ number_format($payroll->net_salary, 2) }} {{ ucfirst($payroll->status) }}
@else

No payroll records yet.

@endif