@if ($overviewEntry['entry'])
@if ($overviewEntry['entry']->post_status == 0) @can('accounting-exchanges-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('accounting/show.payment_method') :

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

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

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

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

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

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

@lang('general.description') :

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

@php $show_cost_centers_on_module = checkIfModuleIsActiveForCostCenters('exchanges'); @endphp
@if ($show_cost_centers_on_module) @endif @foreach ($overviewEntry['entry']->debit_items as $debit_item) @if ($show_cost_centers_on_module) @endif @endforeach @if ($show_cost_centers_on_module) @endif
# @lang('accounting/show.account') @lang('accounting/show.receivable') @lang('accounting/show.amount') @lang('general.description') @lang('accounting/show.cost_center')
{{ $loop->iteration }} {{ $debit_item->account_id != null ? $debit_item->account->name : '---' }} {{ $debit_item->receivable_id != null ? $debit_item->receivable_account->name : '---' }} {{ dn($debit_item->amount) }} {{ $debit_item->notice ?? '---' }}{{ $debit_item->cost_center?->ar_name ?? '---' }}
@lang('general.total') {{ dn(collect($overviewEntry['entry']->debit_items)->sum('amount')) }}
@if ($overviewEntry['entry']->payment_way == 'transfer')

@lang('accounting/show.bank_transfers')

@foreach ($overviewEntry['entry']->transfers as $transfer) @endforeach
# @lang('accounting/show.transfer_value') @lang('accounting/show.transfer_number') @lang('accounting/show.transfer_date') @lang('accounting/show.bank') @lang('general.description')
{{ $loop->iteration }} {{ dn($transfer->amount) }} {{ $transfer->number }} {{ $transfer->date }} {{ $transfer->bank }} {{ $transfer->notice ?? '---' }}
{{ dn(collect($overviewEntry['entry']->transfers)->sum('amount')) }}
@endif @if ($overviewEntry['entry']->payment_way == 'check')

@lang('accounting/show.checks')

@foreach ($overviewEntry['entry']->checks as $check) @endforeach
# @lang('accounting/show.transfer_value') @lang('accounting/show.check_number') @lang('accounting/show.check_date') @lang('general.description')
{{ $loop->iteration }} {{ dn($check->amount) }} {{ $check->number }} {{ $check->date }} {{ $check->notice ?? '---' }}
{{ dn(collect($overviewEntry['entry']->checks)->sum('amount')) }}
@endif @if ($overviewEntry['entry']->payment_way == 'ewallet')

@lang('accounting/show.electronic_wallets')

@foreach ($overviewEntry['entry']->ewallet_items as $ewallet_item) @endforeach
# @lang('accounting/show.transfer_value') @lang('accounting/show.sent_number') @lang('accounting/show.payment_date') @lang('general.description')
{{ $loop->iteration }} {{ dn($ewallet_item->amount) }} {{ $ewallet_item->from_number }} {{ $ewallet_item->date }} {{ $ewallet_item->notice }}
@lang('general.total') {{ dn(collect($overviewEntry['entry']->ewallet_items)->sum('amount')) }}
@endif
@foreach ($overviewEntry['entry']->debit_items as $debit_item) @endforeach
@lang('accounting/show.account_receivable') @lang('accounting/show.debtor') @lang('accounting/show.creditor') @lang('accounting/show.cost_center') @lang('general.description')
{{ $overviewEntry['entry']->credit_account->name }} --- {{ dn($overviewEntry['entry']->amount) }} --- {{ $overviewEntry['entry']->notice }}
{{ $debit_item->account_id ? $debit_item->account->name : $debit_item->receivable_account->name }} {{ dn($debit_item->amount) }} --- --- {{ $debit_item->notice }}
{{ dn($overviewEntry['entry']->amount) }} {{ dn($overviewEntry['entry']->amount) }}

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

@lang('accounting/show.signature')

@foreach ($signatures as $signature)

{{ $signature->label }}

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

@endforeach
@endif

@lang('accounting/show.attachments')

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

{{ $attachment->file }}

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