@extends('layouts.app') @section('title', 'Payroll Reports') @section('breadcrumbs')
@endsection @section('content')| Month | Employees | Earnings (OMR) | Deductions (OMR) | Net (OMR) | Status |
|---|---|---|---|---|---|
| {{ \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) }} | {{ ucfirst($batch->status) }} |
| No payroll data available. | |||||
| Total | — | {{ number_format(collect($monthlyData)->sum('total_earnings'), 3) }} | {{ number_format(collect($monthlyData)->sum('total_deductions'), 3) }} | {{ number_format(collect($monthlyData)->sum('total_net'), 3) }} | |
| Department | Employees | Total Cost (OMR) | Avg Salary (OMR) | % of Total |
|---|---|---|---|---|
| {{ $dept['name'] }} | {{ $dept['count'] }} | {{ number_format($dept['total'], 3) }} | {{ number_format($dept['average'], 3) }} |
|
| No data available. Finalize a payroll batch first. | ||||
| Component | Type | Total Amount (OMR) | % of Payroll |
|---|---|---|---|
| {{ $comp['name'] }} | {{ ucfirst($comp['type']) }} | {{ number_format($comp['total'], 3) }} | {{ number_format($comp['percentage'], 1) }}% |
| No data available. | |||
Based on {{ $ytdData['batches_count'] }} finalized payroll batch(es) in {{ date('Y') }}.
@elseNo finalized payroll batches for {{ date('Y') }} yet.
@endif