@if ($overviewBond['bond'])
{{ $overviewBond['bond']->bond_number }}
{{ $overviewBond['bond']->date }}
{{ $overviewBond['bond']->branch->name }}
{{ $overviewBond['bond']->client_type == 'cash' ? 'عميل نقدي' : $overviewBond['bond']->client?->name }}
{{ $overviewBond['bond']->client?->phone_1 ?? '---' }}
@php $invoiceNumbers = $overviewBond['bond']->items->pluck('sales_invoice.bond_number')->unique()->filter()->toArray(); @endphp {{ implode(' , ', $invoiceNumbers) }}
{{ $overviewBond['bond']->client?->currency?->name ?? '---' }}
{{ $overviewBond['bond']->exchange_price }}
{{ $overviewBond['bond']->cost_center?->ar_name }}
| @lang('warehouses/returned-purchase-bonds/show.unit_code') | @lang('warehouses/returned-purchase-bonds/show.item_description') | @lang('warehouses/returned-purchase-bonds/show.unit') | @lang('warehouses/returned-purchase-bonds/show.returned_quantity') | @lang('warehouses/returned-purchase-bonds/show.sale_price') | @lang('warehouses.purchase-invoices.create.tax') | @lang('warehouses.purchase-invoices.create.total_after_tax') | @lang('warehouses/returned-purchase-bonds/show.notes') |
|---|---|---|---|---|---|---|---|
| {{ $item->barcode->number }} | {{ $item->barcode->ar_name }} | {{ $item->barcode->unit->name }} | {{ $item->quantity }} | @php $invoice_item = $item; $price = $item->price; $item_value = $price * $item->quantity; $client_discount_ratio = $item->sales_invoice->client_discount_ratio ?? 0; $client_discount_amount = $item_value * $client_discount_ratio / 100; $total = $item_value - $client_discount_amount; $tax_ratio = $invoice_item->tax_ratio ?? 0; $is_under_tax = $item->sales_invoice->is_under_tax ?? false; $taxValue = $is_under_tax ? ($invoice_item->tax_ratio / 100) * $total :0 ; $totalWithTax = $total + $taxValue; $sum += $totalWithTax; @endphp {{ $price }} | {{ isset($invoice_item->tax_ratio )? $invoice_item->tax_ratio . '%': '---' }} | {{ dn($totalWithTax) }} | {{ $item->notice }} |
| @lang('warehouses/sales-invoices/show.sum') | {{ dn($sum) }} | ||||||
 }})
@lang('warehouses/returned-purchase-bonds/show.notes') :
{{ $overviewBond['bond']->notice }}