@extends('layouts.app') @section('title', 'Dashboard') @use(App\Support\Expiry) @section('content')

Active Staff

{{ number_format($active) }}

Resigned

{{ number_format($resign) }}

Other / Unverified

{{ number_format($inactive) }}

Permits ≤30d

{{ $expiry['permit_expiry'][30] }}
{{ $expiry['permit_expiry']['expired'] }} already expired
@if(isset($attByCode)) {{-- Attendance + payroll reporting: admin & finance only --}}
Attendance — {{ $attMonthLabel }}
{{ number_format($attMarked) }} of {{ number_format($attActive) }} staff marked this month
Full report
@foreach(\App\Models\Attendance::CODES as $code => $label)
{{ number_format($attByCode[$code] ?? 0) }}
{{ $code }}
@endforeach
Top sites recording attendance
@forelse($attTopSites as $row) @empty @endforelse
SiteStaffRecords
{{ $row->name }} {{ $row->staff }} {{ $row->c }} view
No attendance recorded yet this month. Start marking.
Payroll — {{ $payMonthLabel }}
{{ $payFinalized }} finalized · {{ $payDraft }} draft
Payroll
Net payout
RM {{ number_format($payNett, 2) }}
Payslips
{{ number_format($payCount) }}
Gross earningsRM {{ number_format($payGross, 2) }}
Total deductionsRM {{ number_format($payDeductions, 2) }}

Net payout — last 6 months
@endif
@php $panels = [ ['permit', 'Permits Expiring', $expiringPermits, 'permit_expiry'], ['passport', 'Passports Expiring', $expiringPassports, 'passport_expiry'], ['fomema', 'FOMEMA Expiring', $expiringFomema, 'fomema_expiry'], ]; @endphp @foreach($panels as [$type, $label, $rows, $col])
{{ $label }} (≤90 days)
View all
@forelse($rows as $s) @empty @endforelse
{{ \Illuminate\Support\Str::limit($s->name, 22) }}
{{ $s->site?->name ?? '—' }}
{{ optional($s->$col)->format('d M Y') }}
{!! Expiry::chip($s->$col) !!}
Nothing expiring soon 🎉
@endforeach
Active by Nationality
Active by Site (top 8)
@endsection @push('scripts') @endpush