@extends('layouts.app') @section('content')

Agent Payment Voucher Details

Voucher ID {{ Str::of($voucher->voucher_id)->replace('-', '') }}
Agent Name {{ $voucher->payment->agent->name ?? 'N/A' }}
Branch {{ $voucher->payment->branch->name ?? 'N/A' }}
Amount {{ number_format($voucher->amount, 0) }}
Payment Method {{ ucwords(str_replace('_', ' ', $voucher->payment_method)) }}
Due {{ number_format($dueAfterPayment, 0) }}
Payment Date {{ $voucher->created_at->format('d M Y, h:i A') }}
Trx ID {{ $voucher->trx_id ?? 'N/A' }}
Created By {{ $voucher->user->name ?? 'N/A' }}
Back Print @if(auth()->user()->isSuperAdmin()) Edit @endif
@endsection