@extends('layouts.app') @section('title', 'My Payslips') @section('breadcrumbs') @endsection @section('content')

My Payslips

@if($payslips->isEmpty())

No payslips available yet

Your payslips will appear here once payroll is processed.

@else
@foreach($payslips as $item)

{{ \Carbon\Carbon::createFromDate($item->batch->year, $item->batch->month, 1)->format('F Y') }}

Paid
Gross Salary OMR {{ number_format($item->gross_salary, 3) }}
Deductions OMR {{ number_format($item->total_deductions, 3) }}
Net Salary OMR {{ number_format($item->net_salary, 3) }}
@if($item->payslip_path) Download Payslip @endif
@endforeach
@if($payslips->hasPages())
{{ $payslips->links() }}
@endif @endif
@endsection