@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)
    • ({{ $lvl1->account_number }}) {{ $lvl1->name }}
      active == 1 ? 'checked' : '' }}>
        @foreach(App\Models\financial_accounts::where('parent_account_number',$lvl1->id)->get() as $lvl2)
      • ({{ $lvl2->account_number }}) {{ $lvl2->name }}
        active == 1 ? 'checked' : '' }}>
          @foreach(App\Models\financial_accounts::where('parent_account_number',$lvl2->id)->get() as $lvl3)
        • ({{ $lvl3->account_number }}) {{ $lvl3->name }}
          active == 1 ? 'checked' : '' }}>
            @foreach(App\Models\financial_accounts::where('parent_account_number',$lvl3->id)->get() as $lvl4)
          • ({{ $lvl4->account_number }}) {{ $lvl4->name }}
            active == 1 ? 'checked' : '' }}>
          • @endforeach
        • @endforeach
      • @endforeach
    • @endforeach
  • @endforeach
@endsection @section('js') @endsection