@extends('layouts.app') @section('title', 'Payroll Run') @section('content')

Payroll — {{ $payrollRun->periodLabel() }}

{{ ucfirst($payrollRun->status) }}
@foreach ($payrollRun->payslips as $p) @endforeach
StaffBaseAllowancesDeductionsNet PayStatus
{{ $p->user->name }} {{ number_format($p->base_salary,2) }} {{ number_format($p->allowances,2) }} {{ number_format($p->deductions,2) }} {{ number_format($p->net_pay,2) }} {{ ucfirst($p->status) }} @if ($payrollRun->status !== 'paid')
@csrf @method('PUT')
@endif
Total{{ number_format($payrollRun->total_amount,2) }}
@if ($payrollRun->status !== 'paid')
@csrf
@endif @endsection