@props(['vouchers', 'subAgents'])
Payment Vouchers
@forelse($vouchers as $voucher) @empty @endforelse
Voucher # Date Sub Agent Workers Total Amount Status Actions
{{ $voucher->voucher_number }} {{ $voucher->created_at->format('Y-m-d') }} {{ $voucher->subAgent->name }} {{ $voucher->workers->count() }} ${{ number_format($voucher->total_amount, 2) }} {{ ucfirst($voucher->status) }}
No vouchers found
@if(method_exists($vouchers, 'links'))
{{ $vouchers->links() }}
@endif