شجرة الحسابات

@can('manage-accounting') @endcan
@if (session('success'))
{{ session('success') }}
@endif @if ($editing || $creating)
{{ $creating ? 'إضافة حساب' : 'تعديل الحساب' }}
@error('code')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@endif
@foreach ($typeOrder as $type) @if ($grouped->has($type)) @foreach ($grouped[$type] as $acc) @endforeach {{-- Section total row --}} @endif @endforeach
الكود اسم الحساب النوع الرصيد نظام إجراءات
{{ $acc->code }} {{ $acc->name }} @if ($acc->type === 'asset') أصول @elseif($acc->type === 'liability') التزامات @elseif($acc->type === 'equity') حقوق ملكية @elseif($acc->type === 'revenue') إيرادات @elseif($acc->type === 'expense') مصروفات @endif {{ number_format($acc->balance(), 2) }} ج.م @if ($acc->is_system) نظام @endif @if (!$acc->is_system)
@can('manage-accounting') @endcan
@endif
{{ $typeLabels[$type] }} {{ number_format($totals[$type] ?? 0, 2) }} ج.م