@extends('layouts.vouchers') @section('content')
Voucher Number: {{ $voucher->voucher_number }}
Sub Agent: {{ $voucher->subAgent->name ?? 'N/A' }}
Type: {{ ucfirst($voucher->voucher_type) }}
Status: {{ ucfirst($voucher->status) }}
Total Amount: {{ number_format($voucher->total_amount, 2) }}
Created: {{ $voucher->created_at->format('M d, Y H:i') }}
| Name | Passport | Amount |
|---|---|---|
| {{ $worker->name }} | {{ $worker->passport_number }} | {{ number_format($worker->pivot->amount, 2) }} |