@extends('layouts.master') @section('page_title', 'Account Details') @section('content')
{{ $account->code ?? $account->account_code ?? 'N/A' }}
{{ $account->name }}
{{ $account->accountType->name ?? 'N/A' }} @if($account->accountType) ({{ ucfirst($account->accountType->category) }}) @endif
@if($account->parent) {{ $account->parent->name }} ({{ $account->parent->code ?? $account->parent->account_code }}) @else None @endif
{{ number_format($account->opening_balance ?? 0, 2) }}
{{ number_format($account->current_balance ?? 0, 2) }}
@if($account->is_active ?? false) Active @else Inactive @endif @if($account->is_system ?? false) System Account @endif
{{ $account->created_at?->format('M d, Y H:i') ?? 'N/A' }}
{{ $account->description }}
| Code | Name | Type | Current Balance | Status | Actions |
|---|---|---|---|---|---|
| {{ $child->code ?? $child->account_code }} | {{ $child->name }} | {{ $child->accountType->name ?? 'N/A' }} | {{ number_format($child->current_balance ?? 0, 2) }} | @if($child->is_active ?? false) Active @else Inactive @endif | View Edit |
| Date | Reference | Description | Debit | Credit | Balance |
|---|---|---|---|---|---|
| {{ $transaction->journalEntry->date ?? $transaction->created_at?->format('M d, Y') }} | {{ $transaction->journalEntry->reference ?? 'N/A' }} | {{ $transaction->description ?? $transaction->journalEntry->description ?? 'N/A' }} | @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 | @php $runningBalance += ($transaction->debit_amount - $transaction->credit_amount); @endphp {{ number_format($runningBalance, 2) }} |
This account has transactions, but none are currently posted or visible.
No transactions found for this account.