@extends('layouts.master') @section('page_title', 'Account Statement') @section('content')
| Account Code: | {{ $account->code ?? $account->account_code }} |
| Account Name: | {{ $account->name }} |
| Account Type: | {{ $account->accountType->name ?? 'N/A' }} @if($account->accountType) {{ ucfirst($account->accountType->category) }} @endif |
| Normal Balance: | {{ ucfirst($account->accountType->normal_balance ?? 'N/A') }} |
| Statement Period: | {{ \Carbon\Carbon::parse($startDate)->format('M d, Y') }} to {{ \Carbon\Carbon::parse($endDate)->format('M d, Y') }} |
| Opening Balance: | {{ number_format($openingBalance, 2) }} |
| Closing Balance: | {{ number_format($closingBalance, 2) }} |
| Status: | @if($account->is_active) Active @else Inactive @endif |
| Date | Reference | Description | Debit | Credit | Balance | Action |
|---|---|---|---|---|---|---|
| Opening Balance as of {{ \Carbon\Carbon::parse($startDate)->format('M d, Y') }} | - | - | {{ number_format($openingBalance, 2) }} | - | ||
| {{ $transaction->journalEntry->entry_date ? \Carbon\Carbon::parse($transaction->journalEntry->entry_date)->format('M d, Y') : 'N/A' }} | {{ $transaction->journalEntry->entry_number ?? 'N/A' }} |
{{ $transaction->description ?: $transaction->journalEntry->description }}
@if($transaction->description && $transaction->journalEntry->description && $transaction->description !== $transaction->journalEntry->description)
Entry: {{ $transaction->journalEntry->description }}
@endif
|
@if($transaction->debit_amount > 0) {{ number_format($transaction->debit_amount, 2) }} @else - @endif | @if($transaction->credit_amount > 0) {{ number_format($transaction->credit_amount, 2) }} @else - @endif | {{ number_format($transaction->running_balance, 2) }} | |
| Closing Balance as of {{ \Carbon\Carbon::parse($endDate)->format('M d, Y') }} | - | - | {{ number_format($closingBalance, 2) }} | - | ||
Transactions
Total Debits
Total Credits
Net Movement
Avg Transaction
Final Balance
This account has no transactions for the selected period.
Period: {{ \Carbon\Carbon::parse($startDate)->format('M d, Y') }} to {{ \Carbon\Carbon::parse($endDate)->format('M d, Y') }}