@extends('layouts.app') @php use Illuminate\Support\Facades\Storage; @endphp @section('content')

Payment Details

Back
Transaction Date
{{ optional($payment->transaction_date)->format('Y-m-d') }}
Amount
BDT {{ number_format($payment->amount, 2) }}
Invoice #
{{ $payment->salesInvoice->invoice_no ?? 'N/A' }}
Customer
{{ optional($payment->salesInvoice->customer)->company_name ?? optional($payment->salesInvoice->customer)->name }}
Bank Name
{{ optional($payment->bankAccountInfo)->bank_name }}
Account Name
{{ optional($payment->bankAccountInfo)->account_name }}
Account Number
{{ optional($payment->bankAccountInfo)->account_number }}
Notes
{{ $payment->notes }}
@if(is_array($payment->receipt_images) && count($payment->receipt_images))
Payment Images
@foreach($payment->receipt_images as $imagePath) @php $imageUrl = Storage::disk('public')->exists($imagePath) ? Storage::disk('public')->url($imagePath) : null; @endphp
@if($imageUrl) Payment image View full size @else
File missing
@endif
@endforeach
@endif
@endsection