@extends('layouts.app') @section('title', 'Account Details') @section('content')
Account Code
{{ $account->account_code }}
Account Name
{{ $account->account_name }}
Account Type
{{ $account->accountType->name }}Normal Balance: {{ ucfirst($account->accountType->normal_balance) }}
Status
{{ $account->is_active ? 'Active' : 'Inactive' }}Parent Account
{{ $account->parentAccount->account_code }} - {{ $account->parentAccount->account_name }}Description
{{ $account->description }}
| Account Code | Account Name | Status | Actions |
|---|---|---|---|
| {{ $subAccount->account_code }} | {{ $subAccount->account_name }} | {{ $subAccount->is_active ? 'Active' : 'Inactive' }} | View |
Opening Balance
LKR {{ number_format($currentBalance->opening_balance, 2) }}
Total Debits
LKR {{ number_format($currentBalance->debit_total, 2) }}
Total Credits
LKR {{ number_format($currentBalance->credit_total, 2) }}
Closing Balance
LKR {{ number_format($currentBalance->closing_balance, 2) }}
| Date | Entry Number | Description | Debit | Credit |
|---|---|---|---|---|
| {{ $line->journalEntry->entry_date->format('M d, Y') }} | {{ $line->journalEntry->entry_number }} | {{ Str::limit($line->description ?? $line->journalEntry->description, 40) }} | @if($line->debit_amount > 0) {{ number_format($line->debit_amount, 2) }} @else - @endif | @if($line->credit_amount > 0) {{ number_format($line->credit_amount, 2) }} @else - @endif |