@if ($overviewEntry['entry'])
@if ($overviewEntry['entry']->post_status == 0) @can('accounting-debitNotes-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 ? 'مرحّل' : 'غير مرحّل' }}

@if ($overviewEntry['entry']->debit_account_id)
@lang('accounting/show.debtor_account') :

{{ $overviewEntry['entry']->debit_account->name }}

@else
@lang('accounting/show.receivables_account') :

{{ $overviewEntry['entry']->debit_receivable_account->name }}

@endif @php if (! function_exists('arabicTafqeet')) { function arabicTafqeet($value) { return \Tafqeet::inArabic( number_format((float) str_replace(',', '', $value), 3, '.', ''), 'jod' ); } } @endphp
@lang('accounting/show.transfer_value') :

{{ dn($overviewEntry['entry']->amount) }}

{{ arabicTafqeet(dn($overviewEntry['entry']->amount)) }}

@lang('general.description') :

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

@lang('accounting/show.accounts')

@php $show_cost_centers_on_module = checkIfModuleIsActiveForCostCenters('debitNotes'); @endphp @if ($show_cost_centers_on_module) @endif @foreach ($overviewEntry['entry']->credit_items as $credit_item) @if ($show_cost_centers_on_module) @endif @endforeach
# @lang('accounting/show.account') @lang('accounting/show.transfer_value') @lang('general.description')@lang('accounting/show.cost_center')
{{ $loop->iteration }} {{ $credit_item->credit_account->name }} {{ dn($credit_item->amount) }} {{ $credit_item->notice ?? '---' }}{{ $credit_item->cost_center->ar_name ?? '---' }}

@lang('general.description') :

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

@if ($show_cost_centers_on_module) @endif @php $debit_account = $overviewEntry['entry']->debit_account_id ? $overviewEntry['entry']->debit_account : $overviewEntry['entry']->debit_receivable_account; @endphp @if ($show_cost_centers_on_module) @endif @foreach ($overviewEntry['entry']->credit_items as $credit_item) @if ($show_cost_centers_on_module) @endif @endforeach @if ($show_cost_centers_on_module) @endif
@lang('accounting/show.account_receivable') @lang('accounting/show.debtor') @lang('accounting/show.creditor') @lang('accounting/show.cost_center')@lang('general.description')
{{ $debit_account->name }} {{ dn($overviewEntry['entry']->amount) }} ------{{ $overviewEntry['entry']->notice }}
{{ $credit_item->credit_account->name }} --- {{ dn($credit_item->amount) }}{{ $credit_item->cost_center->ar_name ?? '---' }}{{ $item->notice ?? '---' }}
{{ dn($overviewEntry['entry']->amount) }} {{ dn($overviewEntry['entry']->amount) }}

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

@lang('accounting/show.signature')

@foreach ($signatures as $signature)

{{ $signature->label }}

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

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