@extends('admin.layouts.master') @section('title', 'الحسابات المالية') @section('css') @endsection @section('content') {{-- Header --}}

الحسابات المالية

{{-- KPIs --}}
إجمالي رصيد الافتتاحي
{{ number_format((float)($summary->total_start ?? 0), 2) }}
إجمالي الرصيد الحالي
{{ number_format((float)($summary->total_current ?? 0), 2) }}
عدد الحسابات
{{ number_format($totalAccounts ?? 0) }}
الحسابات النشطة
{{ number_format($activeAccounts ?? 0) }}
{{-- Filters --}}
{{-- Tree --}}
شجرة الحسابات
عرض سريع
اضغط + لعرض الفروع
@if($roots->count())
    @foreach($roots as $root) @include('admin.accounts.partials.tree-node', ['node' => $root]) @endforeach
@else
لا يوجد حسابات بعد
إضافة أول حساب
@endif
{{-- Table --}}
قائمة الحسابات
@include('admin.accounts.partials.table', ['items' => $items])
@endsection @section('js') {{-- AJAX Table (Real-time) --}} {{-- Tree Expand/Collapse --}} @endsection