@extends('layouts.master') @section('title', 'Employee Payrolls') @section('content')
| Employee | Month | Gross Salary | Deductions | Net Salary | Late Days | Absent Days | Status | Paid At | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $pay->employee->first_name }} {{ $pay->employee->last_name }} | {{ \Carbon\Carbon::create($pay->year, $pay->month)->format('F, Y') }} | {{ number_format($pay->gross_salary, 2) }} | {{ number_format($pay->deductions, 2) }} | {{ number_format($pay->net_salary, 2) }} | {{ $lateDays }} | {{ $absentDays }} | {{ ucfirst($pay->status) }} | {{ $pay->paid_at ? \Carbon\Carbon::parse($pay->paid_at)->format('d-m-Y') : '-' }} | @if($pay->status == 'unpaid') @else Paid @endif |