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

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

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

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

@lang('accounting/notes/credit/show.document_status') :

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

@lang('accounting/notes/credit/show.receivable_account') :

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

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

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

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

@lang('accounting/notes/credit/show.description') :

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

@lang('accounting/notes/credit/show.accounts')

@if ($overviewEntry['show_cost_centers_on_module']) @endif @foreach ($overviewEntry['entry']->credit_items as $credit_item) @if ($overviewEntry['show_cost_centers_on_module']) @endif @endforeach
# @lang('accounting/notes/credit/show.account') @lang('accounting/notes/credit/show.amount') @lang('accounting/notes/credit/show.description') @lang('accounting/notes/credit/show.cost_center')
{{ $loop->iteration }} {{ $credit_item->credit_account->name }} {{ dn($credit_item->amount) }} {{ $credit_item->notice ?? '---' }}{{ $credit_item->cost_center->ar_name ?? '---' }}

@lang('accounting/notes/credit/show.description') :

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

@if ($overviewEntry['show_cost_centers_on_module']) @endif @foreach ($overviewEntry['entry']->credit_items as $credit_item) @if ($overviewEntry['show_cost_centers_on_module']) @endif @endforeach @if ($overviewEntry['show_cost_centers_on_module']) @endif
@lang('accounting/notes/credit/show.account_receivable') @lang('accounting/notes/credit/show.debtor') @lang('accounting/notes/credit/show.creditor')@lang('accounting/notes/credit/show.cost_center') @lang('accounting/notes/credit/show.description')
{{ $overviewEntry['entry']->debit_receivable_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/notes/credit/show.signature')

@foreach ($signatures as $signature)

{{ $signature->label }}

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

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