@if ($overviewBond['bond'])
@if ($overviewBond['bond']->post_status == false) @can('warehouses-entryBonds-edit') @lang('general.edit') @endcan @endif
@lang('warehouses/entry-bonds/show.date') :

{{ $overviewBond['bond']->date }}

@lang('warehouses/entry-bonds/show.bond_number') :

{{ $overviewBond['bond']->bond_number }}

@lang('warehouses/entry-bonds/show.entry_type') :

{{ $overviewBond['bond']->type->name }}

@lang('warehouses/entry-bonds/show.branch') :

{{ $overviewBond['bond']->branch->name }}

@if ($overviewBond['bond']->client_id)
@lang('warehouses/entry-bonds/show.client') :

{{ $overviewBond['bond']->client->name }}

@endif
@lang('warehouses/entry-bonds/show.bond_status') :

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

@lang('warehouses/entry-bonds/show.items')

@php $total = 0; $total_quantity = 0; $total_cost = 0; @endphp @foreach ($overviewBond['bond']->items as $item) @php $total_quantity += $item->quantity; $total_cost += $item->cost; $total += $item->cost * $item->quantity; @endphp @endforeach
@lang('warehouses/entry-bonds/show.item_description') @lang('warehouses/entry-bonds/show.item_code') @lang('warehouses/entry-bonds/show.unit_code') @lang('warehouses/entry-bonds/show.unit') @lang('warehouses/entry-bonds/show.quantity') @lang('warehouses/entry-bonds/show.expiration_date') @lang('warehouses/entry-bonds/show.cost') @lang('general.total')
{{ $item->print_name ?: $item->barcode->ar_name }} {{ $item->barcode->item->full_number }} {{ $item->barcode->number }} {{ $item->barcode->unit->name }} {{ $item->quantity }} {{ $item->expire_date ?? '---' }} {{ dn($item->cost) }} {{ dn($item->cost * $item->quantity) }}
@lang('warehouses/sales-invoices/show.sum') {{ $total_quantity }} {{ dn($total_cost) }} {{ dn($total) }}

@lang('warehouses/entry-bonds/show.notes') :

{{ $overviewBond['bond']->notice }}

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

@lang('warehouses/entry-bonds/show.signature')

@foreach ($signatures as $signature)

{{ $signature->label }}

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

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