@lang('accounting/reports/accounts/detailed-cost-centers-statement.account') {{ $selected_cost_center->ar_name . ' - (' . $selected_cost_center->id . ')' }}
@lang('accounting/reports/accounts/trial-balance.from_date') {{ $from_date }}
@endif @if (request()->to_date)@lang('accounting/reports/accounts/trial-balance.to_date') {{ $to_date }}
@endif| @lang('accounting/reports/accounts/detailed-cost-centers-statement.accounts') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.balance') |
|---|---|
| {{ $item->account_name ?? '--' }} | {{ dn($item->total_amount) }} |
| @lang('accounting/reports/accounts/detailed-cost-centers-statement.total_amount') | {{ dn($total_balance) }} {{ $total_balance < 0 ? 'دائن' : ($total_balance > 0 ? 'مدين' : '') }} |
| @lang('accounting/reports/accounts/detailed-cost-centers-statement.accounts') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.balance') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.debit') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.credit') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.item_description') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.family') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.quantity') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.cost') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.total_cost') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.transaction_type') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.transaction_number') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.date') | @lang('accounting/reports/accounts/detailed-cost-centers-statement.statement') |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $statement_item->account->name ?? '--' }} | {{ dn($balance) }} | {{ $statement_item->amount > 0 ? dn($statement_item->amount) : '--' }} | {{ $statement_item->amount < 0 ? dn(abs($statement_item->amount)) : '--' }} |
@if (!empty($statement_item->items))
@foreach ($statement_item->items as $item)
{{ optional($item->barcode)->ar_name }}
@endforeach
@else
--
@endif
|
@if ($statement_item->families->isNotEmpty())
@foreach ($statement_item->families as $family)
{{ $family }}
@endforeach
@else
--
@endif
|
@if (!empty($statement_item->items))
@foreach ($statement_item->items as $item)
{{ isset($item->quantity) ? $item->quantity : '--' }}
@endforeach
@else
--
@endif
|
@if (!empty($statement_item->items))
@foreach ($statement_item->items as $item)
{{ isset($item->quantity) ? $item->final_cost : '--' }}
@endforeach
@else
--
@endif
|
@if (!empty($statement_item->items))
@foreach ($statement_item->items as $item)
{{ isset($item->quantity) && isset($item->final_cost) ? $item->quantity * $item->final_cost : '--' }}
@endforeach
@else
--
@endif
|
{{ $statement_item['title'] }} | @if ($statement_item->action_type === 'automated-entry' && $statement_item->builder_model == 'OutBond') @elseif ($statement_item->action_type === 'automated-entry') @else {{ $statement_item->resource_title ?? $statement_item->statement_item_id }} @endif | {{ $statement_item['date'] }} |
@if ($statement_item->action_type == 'automated-entry' && $statement_item->builder_model == 'OutBond')
{{-- for automated entry notice -> type out bond --}}
@foreach ($statement_item->items as $item)
{{ $item->notice ?? '--' }}
@endforeach
@else
{{-- for other bonds notice --}}
{{ $statement_item->notice ?? '--' }}
@endif
|
| {{ dn($balance) }} {{ $balance < 0 ? 'دائن' : ($balance > 0 ? 'مدين' : '') }} | {{ dn($debit_sum) }} | {{ dn($credit_sum) }} |