@php($page = 'accounts') {{env('APP_NAME')}} | View Account
@include("components.navbar")
@include("components.sidebar")

Current Balance

Calculated from Journals

₦ {{ number_format($account->balance(), 2) }}

Title {{ $account->title }}
Code {{ $account->code }}
Status @if($account->status == 'Active') Active @else Inactive @endif
Type {{ $account->type }}
Category {{ $account->category ?? 'N/A' }}
Parent Account {{ $account->parent ? $account->parent->title . ' (' . $account->parent->code . ')' : 'None (Root Account)' }}
Description

{{ $account->description ?: 'No description provided.' }}

Created By

{{ $account->createdBy ? $account->createdBy->firstName . ' ' . $account->createdBy->lastName : 'System' }} on {{ $account->created_at->format('M d, Y') }}

Last Updated By

{{ $account->updatedBy ? $account->updatedBy->firstName . ' ' . $account->updatedBy->lastName : 'System' }} on {{ $account->updated_at->format('M d, Y') }}

Journals Edit @if($account->status == 'Active')
@csrf @method('PUT')
@else
@csrf @method('PUT')
@endif
@include("components.footer")