@extends('layouts.app') @section('title', 'Vouchers') @section('content')

Vouchers

Add Voucher
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($vouchers as $voucher) @empty @endforelse
Voucher ID Booking Type Date Method Amount (SAR) BDT Amount Actions
{{ $voucher->voucher_id }} #{{ $voucher->booking->id ?? 'N/A' }} @if($voucher->transactionType) @if($voucher->transactionType->type === 'debit') {{ $voucher->transactionType->name }} @else {{ $voucher->transactionType->name }} @endif @else N/A @endif {{ $voucher->payment_date }} @if($voucher->payment_method === 'cash') Cash @else Bank @endif {{ number_format($voucher->amount, 2) }} {{ number_format($voucher->bdt_amount, 2) }}
View Edit
@csrf @method('DELETE')
No vouchers yet. Click "Add Voucher" to create a new one.
{{ $vouchers->links() }}
@endsection