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

Transaction Details

Back to Account
Transaction Information
Transaction ID:
#{{ $transaction->id }}
Date & Time:
{{ $transaction->transaction_date->format('M d, Y h:i A') }}
Type:
{{ ucfirst($transaction->transaction_type) }}
Status:
{{ ucfirst($transaction->status) }}
Amount:
@if($transaction->isDeposit()) +৳{{ number_format($transaction->deposit_balance, 2) }} @else -৳{{ number_format($transaction->withdraw_balance, 2) }} @endif
Fee:
@if($transaction->fee > 0) ৳{{ number_format($transaction->fee, 2) }} @else No Fee @endif
Running Balance:
৳{{ number_format($runningBalance, 2) }}
Bank Account Information
Bank Name:
{{ $transaction->bankAccountInfo->bank_name }}
Account Number:
{{ $transaction->bankAccountInfo->account_number }}
Account Type:
{{ ucfirst($transaction->bankAccountInfo->account_type) }}
Branch:
{{ $transaction->bankAccountInfo->branch_name ?? 'N/A' }}
Account Status:
{{ $transaction->bankAccountInfo->is_active ? 'Active' : 'Inactive' }}
Transaction Details
Description:
{{ $transaction->description ?? 'N/A' }}
Reference Number:
@if($transaction->reference_number) {{ $transaction->reference_number }} @else N/A @endif
Category:
@if($transaction->category) {{ $transaction->category }} @if($transaction->subcategory)
{{ $transaction->subcategory }} @endif @else N/A @endif
Payment Method:
{{ $transaction->payment_method ?? 'N/A' }}
Processed At:
@if($transaction->processed_at) {{ \Carbon\Carbon::parse($transaction->processed_at)->format('M d, Y h:i A') }} @else Not Processed @endif
Notes:
{{ $transaction->notes ?? 'N/A' }}
@if($transaction->salesInvoice || $transaction->salesInvoiceTransection)
Related Sales Invoice
@if($transaction->salesInvoice)
Customer:
{{ $transaction->salesInvoice->customer_name ?? ($transaction->salesInvoice->customer ? $transaction->salesInvoice->customer->name : 'N/A') }}
Invoice Amount:
৳{{ number_format($transaction->salesInvoice->invoice_amount, 2) }}
Due Amount:
৳{{ number_format($transaction->salesInvoice->due_amount, 2) }}
@endif @if($transaction->salesInvoiceTransection)
Payment Transaction ID:
#{{ $transaction->salesInvoiceTransection->id }}
Payment Date:
{{ $transaction->salesInvoiceTransection->transaction_date->format('M d, Y') }}
Payment Amount:
৳{{ number_format($transaction->salesInvoiceTransection->amount, 2) }}
Received By:
{{ $transaction->salesInvoiceTransection->received_by ?? 'N/A' }}
@endif
@endif
User Information
Initiated By:
@if($transaction->initiatedBy) {{ $transaction->initiatedBy->name }} @else N/A @endif
Created By:
@if($transaction->createdBy) {{ $transaction->createdBy->name }} @else N/A @endif
Approved By:
@if($transaction->approvedBy) {{ $transaction->approvedBy->name }} @else N/A @endif
@endsection