@if ($overviewEntry['entry'])
@if ($overviewEntry['entry']->post_status == 0) @can('accounting-entries-edit') @lang('general.edit') @endcan @endif
@lang('accounting/show.date'):

{{ $overviewEntry['entry']->date }}

@lang('accounting/show.document_number') :

{{ $overviewEntry['entry']->bond_number }}

@lang('accounting/show.bond_status') :

{{ $overviewEntry['entry']->post_status ? 'مرحّل' : 'غير مرحّل' }}

@lang('general.description') :

{{ $overviewEntry['entry']->notice }}

@php $show_cost_centers_on_module = checkIfModuleIsActiveForCostCenters('entries'); @endphp
@if ($show_cost_centers_on_module) @endif @php $debit_sum = 0; $credit_sum = 0; @endphp @foreach ($overviewEntry['entry']->items as $item) @if ($show_cost_centers_on_module) @endif @php $debit_sum += $item->debit; $credit_sum += $item->credit; @endphp @endforeach @if ($show_cost_centers_on_module) @endif
@lang('accounting/show.debtor') @lang('accounting/show.creditor') @lang('accounting/show.account_type') @lang('accounting/show.account') @lang('general.description') @lang('accounting/show.cost_center')
{{ dn($item->debit) }} {{ dn($item->credit) }} {{ $item->type == 'account' ? 'حساب' : 'ذمة' }} {{ $item->type == 'account' ? $item->account->name : $item->receivable_account->name }} {{ $item->notice ?? '---' }}{{ $item->cost_center->ar_name ?? '---' }}
{{ dn($debit_sum) }} {{ dn($credit_sum) }}

@lang('accounting/show.attachments')

@foreach ($overviewEntry['entry']->attachments as $attachment)

{{ $attachment->file }}

@csrf
@endforeach
@php $debit_sum = 0; $credit_sum = 0; @endphp @foreach ($overviewEntry['entry']->items as $item) @php $debit_sum += $item->debit; $credit_sum += $item->credit; @endphp @endforeach
@lang('accounting/show.account_receivable') @lang('accounting/show.debtor') @lang('accounting/show.creditor') @lang('accounting/show.cost_center') @lang('general.description')
{{ $item->type == 'account' ? $item->account->name : $item->receivable_account->name }} {{ dn($item->debit) }} {{ dn($item->credit) }} {{ $item->notice ?? '---' }} {{ $item->cost_center->ar_name ?? '---' }}
{{ dn($debit_sum) }} {{ dn($credit_sum) }}

@php $signatures = App\Models\Signature::byType('entry')->active()->get(); @endphp @if (count($signatures))

@lang('accounting/show.signature')

@foreach ($signatures as $signature)

{{ $signature->label }}

----------------------------

@endforeach
@endif
@endif @push('script') @endpush