@extends('garage.layouts.app') @section('title', 'Payslip') @section('content') @include('garage.hr.styles')
Payslip
Month: {{ $payslip->month }}
Employee
{{ $payslip->employee_name }}
{{ $payslip->employee_code ?: '—' }} @if($payslip->department_name) · {{ $payslip->department_name }} @endif
Work summary
Present {{ (int)$payslip->present_days }} · Absent {{ (int)$payslip->absent_days }}
Worked {{ number_format(((int)$payslip->work_minutes)/60, 2) }} hrs @if(!empty($payslip->expected_work_minutes)) · Target {{ number_format($payslip->expected_work_minutes / 60, 2) }} hrs @if((int)($payslip->shortfall_minutes ?? 0) > 0) · Short {{ number_format($payslip->shortfall_minutes / 60, 2) }} hrs @else · Full hours @endif @elseif($payslip->working_hours_per_day !== null) · {{ number_format((float)$payslip->working_hours_per_day, 2) }} hrs/day on profile @endif
Fixed allowance {{ number_format((float)($payslip->employee_fixed_allowance ?? 0), 2) }} · Variable allowance {{ number_format((float)($payslip->employee_variable_allowance ?? 0), 2) }} · Advance {{ number_format((float)($payslip->total_advance ?? 0), 2) }} · Employee fund {{ number_format((float)($payslip->employee_fund_deduction ?? 0), 2) }}
@foreach($lines as $l) @endforeach
Line Type Amount
{{ $l->title }} {{ $l->type }} {{ number_format((float)$l->amount, 2) }}
Net pay {{ number_format((float)$payslip->net_pay, 2) }}
@endsection