@extends('layouts.app') @section('title', 'دليل الحسابات') @section('page_title', 'دليل الحسابات (شجرة الحسابات)') @section('content')

دليل الحسابات المعتمد

عرض شجرة الحسابات المالية مستويات الأصول والالتزامات وحقوق الملكية والإيرادات والمصروفات

@foreach($accounts as $account)
{{ $account->code }}

{{ $account->name }}

@if($account->type === 'asset') أصول @elseif($account->type === 'liability') التزامات @elseif($account->type === 'equity') حقوق ملكية @elseif($account->type === 'revenue') إيرادات @else مصروفات @endif
{{ number_format($account->balance, 2) }} ر.س @if($account->children->count() > 0) @endif
@if($account->children->count() > 0)
@foreach($account->children as $child)
{{ $child->code }} {{ $child->name }}
{{ number_format($child->balance, 2) }} ر.س
@endforeach
@endif
@endforeach
@endsection