@extends('layouts.app') @section('title', 'Daily Transaction Details') @section('content')
Bank Name: {{ $bankAccount->bank_name }}
Account Number: {{ $bankAccount->account_number }}
@if($bankAccount->account_name)Account Name: {{ $bankAccount->account_name }}
@endifDate Range: {{ $dateFrom->format('d M Y') }} to {{ $dateTo->format('d M Y') }}
@if($bankAccount->branch_name)Branch: {{ $bankAccount->branch_name }}
@endif| # | Date | Type | Description | Deposit | Withdrawal | Status | Action | |
|---|---|---|---|---|---|---|---|---|
| @if($isUnapproved && !$isWithdrawal) @endif | {{ $index + 1 }} | {{ $transaction->transaction_date->format('d M Y') }} | {{ ucfirst($transaction->transaction_type) }} | {{ $transaction->description ?? '—' }} | @if($transaction->deposit_balance > 0) ৳{{ number_format($transaction->deposit_balance, 2) }} @else — @endif | @if($transaction->withdraw_balance > 0) ৳{{ number_format($transaction->withdraw_balance, 2) }} @else — @endif |
{{ ucfirst($transaction->status) }}
@if($transaction->approved_by && $transaction->approved_at)
Approved by {{ $transaction->approvedBy->name ?? 'N/A' }} {{ $transaction->approved_at->format('d M Y, h:i A') }} @endif |
@if($isWithdrawal)
—
@elseif($isUnapproved)
@if(!$isPending)
@endif
@else
Approved
@endif
|
| Total for {{ \Carbon\Carbon::parse($date)->format('d M Y') }} | ৳{{ number_format(collect($dateTransactions)->sum('deposit_balance'), 2) }} | ৳{{ number_format(collect($dateTransactions)->sum('withdraw_balance'), 2) }} | ||||||