@extends('layouts.app') @section('title', 'Payroll Voucher') @section('breadcrumb')
Generate a payroll voucher and printable salary sheet.
| Voucher No | Period | Voucher Type | Department | Employees | Earnings | Deductions | Net | Status | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $voucher->voucher_no }} | {{ $voucher->periodLabel() }} | {{ $voucher->typeLabel() }} | {{ $voucher->departmentLabel() }} | {{ number_format($voucher->employee_count) }} | {{ number_format($voucher->total_earnings, 2) }} | {{ number_format($voucher->total_deductions, 2) }} | {{ number_format($voucher->total_net, 2) }} | @php $statusStyle = match($voucher->status) { 'approved' => ['#212529', '#f8f9fa'], 'pending_approval' => ['#664d03', '#fff3cd'], default => ['#495057', '#e9ecef'], }; @endphp {{ $voucher->statusLabel() }} | |
| No payroll vouchers found. | |||||||||