|
Ship To:
@php
$shipping_address = json_decode($data['order_data']->shipping_address_data, true);
@endphp
{{ @$shipping_address['contact_person_name'] }} |
{{ $companies['company_name'] }}
|
| S.No | Product Name | Quantity | @php $taxTypes = $data['order_data']->items ->flatMap(function ($item) { return $item->taxes->pluck('tax_type'); }) ->unique(); @endphp @foreach ($taxTypes as $taxType){{ $taxType }} | @endforeachPrice | Total Amount |
|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $items->product_name }} | {{ $items->quantity }} | @foreach ($taxTypes as $taxType) @php $tax = $items->taxes->firstWhere('tax_type', $taxType); @endphp{{ $tax->percentage ?? '0.00' }} | @endforeach{{ number_format($items->unit_price, 2) }} | {{ number_format($items->unit_price * $items->quantity, 2) }} |
| Sub Total | {{ number_format( @$data['order_data']->items->sum(function ($item) { return @$item->unit_price * @$item->quantity; }), 2, ) }} | |||
| Discount | {{ number_format(@$data['order_data']->items->sum('discount'), 2) }} | |||
| {{-- | Tax | {{ number_format(@$data['order_data']->items->sum('tax'), 2) }} | --}}||
| Shipping | {{-- {{ number_format(@$data['order_data']->items->sum('shipping_cost'), 2) }} --}} @if($data['order_data']->shipping_cost > $data['order_data']->shipping_min_free_cost) {{ $data['order_data']->shipping_cost }} @else Free @endif | |||
| Total | @php $shipping_cost = 0; if($data['order_data']->shipping_cost > $data['order_data']->shipping_min_free_cost){ $shipping_cost = $data['order_data']->shipping_cost; } @endphp {{ number_format( @$data['order_data']->items->sum(function ($item) { return $item->unit_price * $item->quantity; }) - @$data['order_data']->items->sum('discount') + @$data['order_data']->items->sum('tax') + $shipping_cost, 2, ) }} | |||
|
Notes By using our website, you accept our terms and conditions. Orders are subject to acceptance, and payment will be processed upon confirmation. Delivery times vary, and returns are accepted within days for refunds. |
||||