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

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

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

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

@lang('warehouses/out-bonds/show.outgoing_type') :

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

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

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

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

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

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

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

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

@php $total = 0; @endphp @foreach ($overviewBond['bond']->items as $item) @php $total += $item->quantity; @endphp @endforeach
@lang('warehouses/out-bonds/show.item_description') @lang('warehouses/out-bonds/show.unit') @lang('warehouses/out-bonds/show.quantity') @lang('warehouses/out-bonds/show.cost_center')
{{ $item->print_name ?: $item->barcode->ar_name }} {{ $item->barcode->unit->name }} {{ $item->quantity }} {{ $item->cost_center?->ar_name ?? '---' }}
@lang('warehouses/sales-invoices/show.sum') {{$total}}

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

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

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

@lang('warehouses/out-bonds/show.signatur')

@foreach ($signatures as $signature)

{{ $signature->label }}

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

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