@extends('index') @section('content')

Payroll History

@if(session('success')) @endif @if(session('error')) @endif
@forelse($payrollBatches as $batch) @empty @endforelse
Month Processing Date Employees Paid Total Amount Status Actions
{{ \Carbon\Carbon::createFromFormat('Y-m', $batch->month)->format('F Y') }} {{ \Carbon\Carbon::parse($batch->processing_date)->format('d-m-Y') }} {{ $batch->employee_count }} {{ number_format($batch->total_amount, 2) }} {{ $batch->status }}
No payroll batches found. Create one now
@endsection