@extends(niche_shell_layout()) @section('title', 'إضافة حساب - '.config('app.name')) @section('breadcrumb') الرئيسية › لوحة المحاسبة › دليل الحسابات › إضافة حساب @endsection @section('content') @php $accountCreateTypeOpts = [ ['value' => 'asset', 'label' => 'أصل'], ['value' => 'liability', 'label' => 'خصم'], ['value' => 'equity', 'label' => 'حقوق ملكية'], ['value' => 'revenue', 'label' => 'إيراد'], ['value' => 'expense', 'label' => 'مصروف'], ]; $accountCreateParentOpts = collect($parentAccounts ?? collect())->map(fn ($p) => [ 'value' => $p->id, 'label' => trim((string) ($p->code ?? '').' - '.(string) ($p->name_ar ?? '')), ])->all(); @endphp
@endsection