@extends('layouts.master') @section('page_title', 'Payroll Dashboard') @section('content')

{{ $stats['total_employees'] }}

Active Employees

{{ $stats['pending_batches'] }}

Pending Batches

{{ \App\Helpers\Mk::formatCurrency($stats['this_month_processed'], 0) }}

This Month Paid

{{ $stats['active_loans'] }}

Active Loans
Recent Payroll Batches
@if($recentBatches->count() > 0)
@foreach($recentBatches as $batch) @endforeach
Batch Name Employees Amount Status Date
{{ $batch->batch_name }} {{ $batch->total_employees }} {{ \App\Helpers\Mk::formatCurrency($batch->total_net_amount, 0) }} {{ ucfirst($batch->status) }} {{ $batch->created_at->format('M d, Y') }}
@else
No payroll batches yet

Create your first payroll batch to get started

Create Batch
@endif
System Status
Employee Setup {{ $stats['total_employees'] }}/{{ App\Models\User::whereIn('user_type', ['teacher', 'admin', 'librarian', 'accountant'])->count() }}
Pending Approvals @if($stats['pending_batches'] > 0) {{ $stats['pending_batches'] }} pending @else All Clear @endif
Active Loans @if($stats['active_loans'] > 0) {{ $stats['active_loans'] }} active @else None @endif
Monthly Payroll Overview (Last 6 Months)
@push('scripts') @endpush @endsection