@extends('layouts.master') @section('title', 'Chart Of Accounts | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.chart of accounts')) @section('css') @endsection @section('content')
{{-- {{ __('basic.dashboard') }} | {{ __('basic.chart of accounts') }} --}}
{{-- accounts trees --}}
{{ __('basic.chart of accounts') }}
    @foreach($accounts as $item)
  • {{ $item->name }}
    @if(count($item->childs)) @include('invoice/acc/acc_account.manageChild',['childs' => $item->childs]) @endif
  • @endforeach
{{-- show accounts --}}
@if ($show_account)
@if ($show_account->origin == 0) @php $acc_type = __('basic.credit account'); $acc_color = "active-color-btn"; @endphp @else @php $acc_type = __('basic.debit account'); $acc_color = "not_accepted-color-btn"; @endphp @endif
{{ __('basic.type') }}
{{ $acc_type }}
{{ __('basic.account') }}

{{ $show_account->code }} {{ $show_account->name }}

{{ __('basic.current balance') }}

{{ $show_account->current_balance_local }}

@foreach ($show_account->entry_items as $item) @endforeach
{{ __('basic.transaction') }} {{ __('basic.debit') }} {{ __('basic.credit') }} {{ __('basic.current balance') }}
@php $icon = "fas fa-wallet"; $icon_color = "main-color"; @endphp

{{ "(". $item->id . ")" . $item->date }}

{{ $item->description . "(". $item->code . ")" }}

{{ $item->debit_local }} {{ $system_currency->code }}
@if($item->entry->currency_rate)
{{ $item->debit }} {{ $item->currency->code }}
@endif
{{ $item->credit_local .' ' . $system_currency->code}}
@if($item->entry->currency_rate)
{{ $item->credit }} {{ $item->currency->code }}
@endif
{{ $item->account_balance_local .' ' . $system_currency->code}}
@if($item->entry->currency_rate)
{{ $item->account_balance }} {{ $item->currency->code }}
@endif
@else
@foreach ($accounts as $item)
@if(!in_array($item->id, [1,2,3,4,5])) @endif

{{ $item->code }}
{{ $item->name }}

{{ __('basic.type') . ": ". $item->account_type->name }}

@endforeach
@endif
{{-- modal fore deleteing account --}} @endsection @section('js') {{-- data table --}} @endsection