@extends('print.layout-voucher') @section('title', 'Expense_Voucher_' . ($expense['transaction_id'] ?? 'N/A') . '_' . ($expense['transaction_date'] ?? date('d-m-Y'))) @section('content')
Expense Voucher
{{-- Expense Header Information --}}
Voucher No: TXN-{{ date('Y') }}-{{ str_pad($expense['transaction_id'], 4, '0', STR_PAD_LEFT) }}
Date: {{ $expense['transaction_date'] ?? 'N/A' }}
{{--
Expense Head/Category: {{ $expense['hname'] ?? 'N/A' }}
--}} {{--
Payment Method: {{ $expense['bank_id'] ? 'Bank Transfer' : 'Cash' }}
--}}
@if($expense['bank_id'])
Payment Bank: {{ $expense['bname'] ?? 'N/A' }}
Account Title: {{ $expense['account_title'] ?? 'N/A' }}
Account No: {{ $expense['account'] ?? 'N/A' }}
@endif {{--
Amount: {{ number_format($expense['debit'] ?? $expense['credit'] ?? 0, 2) }}
--}}
{{-- Expense Details Table --}}

Expense Details

{{-- --}} @if($expense['bank_id']) @else @endif
{{-- Expense Summary --}}
Expense Amount:     {{ number_format(($expense['debit'] > 0 ? $expense['debit'] : $expense['credit']) ?? 0, 2) }}
{{-- Amount in Words --}} @if(function_exists('numberToWordsWithCurrency'))
Amount in Words: {{ numberToWordsWithCurrency(($expense['debit'] > 0 ? $expense['debit'] : $expense['credit']) ?? 0) }} {{--
{{ numberToWordsWithCurrency(($expense['debit'] > 0 ? $expense['debit'] : $expense['credit']) ?? 0) }}
--}}
@endif {{-- Signatures --}}
Prepared By
Verified By
Approved By
Received By
@endsection