@extends('layouts.app') @section('title', 'Account Transactions') @section('breadcrumb') @endsection @section('content')
@if(isset($account))
৳{{ number_format($summary['opening_balance'],0) }}
Opening Balance
৳{{ number_format($summary['total_credits'],0) }}
Total Credits
৳{{ number_format($summary['total_debits'],0) }}
Total Debits
৳{{ number_format($summary['closing_balance'],0) }}
Closing Balance
{{ $account->name }} — Transactions
@forelse($rows as $row) @empty @endforelse
DateTypeDescriptionReferenceCreditDebitBalanceBy
{{ \Carbon\Carbon::parse($row['trans_date'])->format('d M Y') }} {{ ucfirst(str_replace('_',' ',$row['type'])) }} {{ $row['description'] }} {{ $row['reference'] ?? '—' }} {{ $row['entry_type']==='credit' ? '৳'.number_format($row['amount'],2) : '—' }} {{ $row['entry_type']==='debit' ? '৳'.number_format($row['amount'],2) : '—' }} ৳{{ number_format($row['running_balance'],2) }} {{ $row['created_by'] }}
No transactions in this period
Totals: ৳{{ number_format($summary['total_credits'],2) }} ৳{{ number_format($summary['total_debits'],2) }} ৳{{ number_format($summary['closing_balance'],2) }}
@else

Select an account above to view its transactions.

@endif @endsection