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

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

@lang('warehouses/convert-bonds/show.document_number') :

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

@lang('warehouses/convert-bonds/show.convert_type') :

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

@lang('warehouses/convert-bonds/show.from_branch') :

{{ $overviewBond['bond']->from_branch?->name }}

@lang('warehouses/convert-bonds/show.to_branch') :

{{ $overviewBond['bond']->to_branch?->name }}

@lang('warehouses/convert-bonds/show.document_status') :

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

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

@can('warehouses-convertBonds-showCost') @endcan @can('warehouses-convertBonds-showSalesPrice') @endcan @php $total_cost = $total_price = 0; @endphp @foreach ($overviewBond['bond']->items as $item) @php $item_price = $item->barcode->prices->where('branch_id', $overviewBond['bond']->from_branch_id)->first()?->price; @endphp @can('warehouses-convertBonds-showCost') @endcan @can('warehouses-convertBonds-showSalesPrice') @endcan @php $total_cost+= ($item->cost * $item->quantity); $total_price+= ($item_price * $item->quantity); @endphp @endforeach @can('warehouses-convertBonds-showCost') @endcan @can('warehouses-convertBonds-showSalesPrice') @endcan
@lang('warehouses/convert-bonds/show.item_description') @lang('warehouses/convert-bonds/show.unit') @lang('warehouses/convert-bonds/show.quantity')@lang('warehouses/convert-bonds/show.cost') @lang('warehouses/convert-bonds/show.total_cost') @lang('warehouses/convert-bonds/show.price') @lang('warehouses/convert-bonds/show.total_price')@lang('warehouses/convert-bonds/show.notes')
{{ $item->barcode->ar_name }} {{ $item->barcode->unit->name }} {{ $item->quantity }}{{ dn($item->cost) }} {{ dn($item->cost * $item->quantity) }}{{ dn($item_price) }} {{ dn($item_price * $item->quantity) }}{{ $item->notice?? '---' }}
{{ dn($total_cost) }} {{ dn($total_price) }}

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

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

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

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

@foreach ($signatures as $signature)

{{ $signature->label }}

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

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