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

Edit Account Type

Back to List View Details
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('code')
{{ $message }}
@enderror
@error('category')
{{ $message }}
@enderror
@error('normal_balance')
{{ $message }}
@enderror
@error('parent_account_type_id')
{{ $message }}
@enderror
@error('is_active')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Cancel
@if($accountType->accounts && $accountType->accounts->count() > 0)
Related Accounts ({{ $accountType->accounts->count() }})
This account type is currently used by {{ $accountType->accounts->count() }} account(s). Changes to this account type will affect all related accounts.
@foreach($accountType->accounts->take(5) as $account) @endforeach @if($accountType->accounts->count() > 5) @endif
Code Name Current Balance
{{ $account->account_code }} {{ $account->name }} {{ number_format($account->current_balance ?? 0, 2) }}
... and {{ $accountType->accounts->count() - 5 }} more accounts
@endif
@endsection @push('scripts') @endpush