@extends('layouts.app') @section('title', 'Payroll Processing') @section('breadcrumbs') @endsection @section('content')
{{-- Header --}}

Payroll Processing

Monthly payroll management and payslip generation

Reports
{{-- Stats --}} @if($stats)
{{ $stats['total_batches'] }}
Total Batches
{{ $stats['finalized'] }}
Finalized
{{ $stats['in_progress'] }}
In Progress
{{ number_format($stats['total_disbursed'], 3) }}
Total Disbursed (OMR)
@endif {{-- Payroll Batches Table --}}

Payroll Batches

@if($batches->isEmpty())

No payroll batches yet

Initialize your first monthly payroll to get started.

@else
@foreach($batches as $batch) @endforeach
Period Employees Gross (OMR) Deductions (OMR) Net (OMR) WPS Status Actions
{{ \Carbon\Carbon::createFromDate($batch->year, $batch->month, 1)->format('F Y') }} {{ $batch->employee_count }} {{ number_format($batch->total_earnings, 3) }} {{ number_format($batch->total_deductions, 3) }} {{ number_format($batch->total_net, 3) }} @if($batch->wps_generated) Generated @else Pending @endif @if($batch->status === 'finalized') Finalized @elseif($batch->status === 'review') Review @else Draft @endif
@if($batch->status === 'finalized') View @if(!$batch->wps_generated) WPS @endif @else {{ $batch->status === 'draft' ? 'Process' : 'Review' }} @endif
@if($batches->hasPages())
{{ $batches->links() }}
@endif @endif
{{-- Initialize Modal --}}
@endsection