@extends('admin.layouts.master') @section('title', 'الميزانية العمومية') @section('content')
@include('admin.Alerts') {{-- Header + Filter --}}

الميزانية العمومية

بتاريخ: {{ \Carbon\Carbon::parse($asOfDate)->format('Y/m/d') }}

عودة للتقارير
{{-- Date Filter --}}
@php $isBalanced = $report['equation_balanced']; @endphp {{-- Equation Alert --}} @if(!$isBalanced)
تحذير: الميزانية غير متوازنة — الفرق: {{ number_format($report['difference'], 2) }}
@endif
{{-- Assets --}}
الأصول
@forelse($report['assets']['accounts'] as $acc) @empty @endforelse
الحساب الرصيد
{{ $acc->account_number ?? '' }} {{ $acc->name ?? '' }} {{ number_format((float)($acc->balance ?? 0), 2) }}
لا توجد بيانات
إجمالي الأصول {{ number_format($report['assets']['total'], 2) }}
{{-- Liabilities + Equity --}}
{{-- Liabilities --}}
الخصوم
@forelse($report['liabilities']['accounts'] as $acc) @empty @endforelse
الحسابالرصيد
{{ $acc->account_number ?? '' }} {{ $acc->name ?? '' }} {{ number_format((float)($acc->balance ?? 0), 2) }}
لا توجد بيانات
إجمالي الخصوم {{ number_format($report['liabilities']['total'], 2) }}
{{-- Equity --}}
حقوق الملكية
@forelse($report['equity']['accounts'] as $acc) @empty @endforelse
الحسابالرصيد
{{ $acc->account_number ?? '' }} {{ $acc->name ?? '' }} {{ number_format((float)($acc->balance ?? 0), 2) }}
لا توجد بيانات
إجمالي حقوق الملكية {{ number_format($report['equity']['total'], 2) }}
{{-- Summary --}}
الخصوم + حقوق الملكية {{ number_format($report['liabilities_and_equity'], 2) }}
@endsection