@extends('companyuser::layouts.master') @section('title', __('accounting::chart_of_accounts.Show account details')) @push('account-view-style') @endpush @push('account-view-scripts') @endpush @section('breadcrumb') @endsection @section('content')
@can('reports.'.strtolower(str_replace(' ', '-', (\Modules\Reports\Enums\ReportsEnum::DATA_MAPPING[\Modules\Reports\Enums\ReportsEnum::ACCOUNT_SUMMARY]['name']))).'.view') @endcan @can('reports.'.strtolower(str_replace(' ', '-', (\Modules\Reports\Enums\ReportsEnum::DATA_MAPPING[\Modules\Reports\Enums\ReportsEnum::ACCOUNT_STATEMENT]['name']))).'.view') @endcan
{{-- tree hierarchy --}}

@lang('accounting::chart_of_accounts.Account Hierarchy')

  • {{$account->accountingSubCategory->accountingCategory->name}}

    • {{$account->accountingSubCategory->name}}

      @if($account->is_main)
      • {{$account->name}}

      @else @php $html = $endHtml = '' ; foreach($account->accountingTree as $parentAccount) : // to the ui deveolper, maybe the account code should be in seprate span or something like these, i don't know // the point is to work corectly in the rtl & ltr ,--> ok ya khaled ^^ $html .= ' '; endforeach; $html .= '
      • ' . e($account->code) .' '. e($account->name) . '

        '; $endHtml .= '
      '; @endphp {!! $html . $endHtml !!} {{--
      • Testing

        • text

          • text

      --}} @endif

@lang('accounting::chart_of_accounts.Account Type')

{{Lang::locale() == 'ar' ? $account->accountingSubCategory->name_ar : $account->accountingSubCategory->name_en}}

@lang('accounting::chart_of_accounts.Name')

{{$account->name}}

@lang('accounting::chart_of_accounts.Used in Payments')

used_in_payment) checked @endif disabled>

@lang('accounting::chart_of_accounts.link_cost_center')

link_cost_center) checked @endif disabled>

@lang('accounting::chart_of_accounts.Debit Value')

{{number_format($account->current_total_debit, 2) }} {!! __('settings::currencies.'.$account->currency_code) !!}

@lang('accounting::chart_of_accounts.Credit Value')

{{number_format($account->current_total_credit, 2) }} {!! __('settings::currencies.'.$account->currency_code) !!}

@lang('accounting::chart_of_accounts.Code')

{{$account->code}}

@lang('accounting::chart_of_accounts.Parent Account')

{{ !$account->is_main ? $account->accountingTree->last()->parent->name ?? '' : '' }}

@lang('accounting::chart_of_accounts.Current Balance')

{{ ($account->current_balance < 0 ) ? '(' . number_format(abs($account->current_balance), 2) . ')' : number_format($account->current_balance, 2) }} {!! __('settings::currencies.'.$account->currency_code) !!}

@lang('accounting::chart_of_accounts.Description')

@endsection @section('extra_scripts') @endsection