@extends('layouts.app') @section('title', 'Voucher Details') @section('content')
← Back to Vouchers

Voucher {{ $voucher->voucher_id }}

@if($voucher->transactionType) @if($voucher->transactionType->type === 'debit') {{ $voucher->transactionType->name }} @else {{ $voucher->transactionType->name }} @endif @endif @if($voucher->payment_method === 'cash') Cash @else Bank @endif
@if(session('success'))
{{ session('success') }}
@endif

Voucher Information

Voucher ID

{{ $voucher->voucher_id }}

Booking

#{{ $voucher->booking->id ?? 'N/A' }}

Payment

#{{ $voucher->payment->id ?? 'N/A' }}

Branch

{{ $voucher->branch->name ?? 'N/A' }}

Created By

{{ $voucher->user->name ?? 'N/A' }}

Created At

{{ $voucher->created_at->format('Y-m-d H:i') }}

Payment Details

Payment Date

{{ $voucher->payment_date }}

Amount (SAR)

{{ number_format($voucher->amount, 2) }}

BDT Amount

{{ number_format($voucher->bdt_amount, 2) }}

Currency Rate

{{ $voucher->currencyRate ? number_format($voucher->currencyRate->rate, 4) : 'N/A' }}

Transaction ID

{{ $voucher->transaction_id ?? 'N/A' }}

Agent Information

Bank

{{ $voucher->bank->name ?? 'N/A' }}

Ticket Agent

{{ $voucher->ticketAgent->name ?? 'N/A' }}

Visa Agent

{{ $voucher->visaAgent->name ?? 'N/A' }}

Back to List
Edit
@csrf @method('DELETE')
@endsection