@extends('layouts.master') @section('page_title', 'Edit Account') @section('content')

Edit Account

Back to List View Details
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('account_code')
{{ $message }}
@enderror
@error('account_type_id')
{{ $message }}
@enderror
@error('parent_id')
{{ $message }}
@enderror
Changes to opening balance will update current balance accordingly.
@error('opening_balance')
{{ $message }}
@enderror
@error('is_active')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Cancel
@if($account->children && $account->children->count() > 0)
Sub Accounts ({{ $account->children->count() }})
This account has {{ $account->children->count() }} sub-account(s). Changes to this account may affect its sub-accounts.
@foreach($account->children->take(5) as $child) @endforeach @if($account->children->count() > 5) @endif
Code Name Current Balance Status
{{ $child->code }} {{ $child->name }} {{ number_format($child->current_balance ?? 0, 2) }} @if($child->is_active) Active @else Inactive @endif
... and {{ $account->children->count() - 5 }} more sub-accounts
@endif @if($account->journalEntryLines && $account->journalEntryLines->count() > 0)
Transaction History
This account has {{ $account->journalEntryLines->count() }} transaction(s). Be careful when modifying account details as it may affect financial reports.

Current Balance: {{ number_format($account->current_balance, 2) }}

@endif
@endsection @push('scripts') @endpush