@extends('layouts.master')
@section('title')
{{ __('home.tree') }}
@endsection
@section('css')
@endsection
@section('page-header')
@endsection
@section('content')
{{ __('home.add_new_account') }}
@foreach(App\Models\acounts_type::get() as $type)
-
{{ app()->getLocale() == 'ar' ? $type->name_ar : $type->name_en }}
@foreach(App\Models\financial_accounts::where('account_type',$type->id)->whereNull('parent_account_number')->get() as $lvl1)
-
@foreach(App\Models\financial_accounts::where('parent_account_number',$lvl1->id)->get() as $lvl2)
-
@foreach(App\Models\financial_accounts::where('parent_account_number',$lvl2->id)->get() as $lvl3)
-
@foreach(App\Models\financial_accounts::where('parent_account_number',$lvl3->id)->get() as $lvl4)
-
@endforeach
@endforeach
@endforeach
@endforeach
@endforeach
@endsection
@section('js')
@endsection