@if ($overviewBond['bond'])
{{ $overviewBond['bond']->bond_number }}
{{ $overviewBond['bond']->box_id }}
{{ $overviewBond['bond']->box->date }}
{{ $overviewBond['bond']->created_at->format('Y-m-d') }}
{{ $overviewBond['bond']->client?->name ?? 'نقدي' }}
{{ $overviewBond['bond']->type == 'from_invoice' ? ' مردود فاتورة' : 'مردود من فاتورة تبديل' }}
{{ $overviewBond['bond']->pos_sales_invoice->bond_number }}
{{ $overviewBond['bond']->user->full_name }}
| @lang('pos/returned-sales-bonds/show.unit_code') | @lang('pos/returned-sales-bonds/show.item_description') | @lang('pos/returned-sales-bonds/show.unit') | @lang('pos/returned-sales-bonds/show.quantity') | @lang('pos/returned-sales-bonds/show.unit_price') | @lang('pos/returned-sales-bonds/show.tax_rate') | @lang('pos/returned-sales-bonds/show.total') |
|---|---|---|---|---|---|---|
| {{ $item->barcode->number }} | {{ $item->barcode->ar_name }} | {{ $item->barcode->unit->name }} | {{ dn($item->quantity) }} | {{ dn($item->price) }} | {{ $overviewBond['bond']->with_tax ? ($item->tax_ratio . '%') : '---' }} | @php $itemTotal = $item->price * $item->quantity - $item->total_discount_amount; $taxRatio = $overviewBond['bond']->with_tax ? ($item->tax_ratio ?? 0) : 0; $itemTotalWithTax = $itemTotal * (1 + $taxRatio / 100); $finalTotal += $itemTotalWithTax; @endphp {{ dn($itemTotalWithTax) }} |
| {{ dn($totalQuantity) }} | {{ dn($totalPrice) }} | {{ dn($finalTotal) }} |