Order No : {{ $aggregator_order_number != null ? $aggregator_order_number."/" : "" }}
{{$order_no}}

Order Date : {{date('d-m-Y', strtotime($booking_date))}} {{ \Carbon\Carbon::createFromTimestamp($booking_time, 'Asia/Kolkata')->format('H:i A') }}

Invoice To

Invoice From

{{$user_name}}

{{$user_address}}

{{$user_email}}

{{$user_number}}

{{$shop_name}}

{{$shop_address}}

{{$shop_email}}

{{$shop_number}}

@if($order_details) @foreach($order_details as $order_detail) @php $item_Detail = \App\Models\Variation::Where('item_id',$order_detail->item_id)->first(); $pp_price = $item_Detail->pp_price; @endphp @endforeach @endif
S.No Items Qty Price Amount
{{ $loop->index+1 }} {{$order_detail->item_name}} @if (count($order_detail->customers_items) > 0) @foreach($order_detail->customers_items as $key => $items)
  • {{$items->item->name}}
  • @endforeach @else @endif
    {{$order_detail->quantity}} @if (count($order_detail->customers_items) > 0) @foreach($order_detail->customers_items as $key => $items)
    {{$items->quantity}} @endforeach @else @endif
    ₹ {{$pp_price}} @if (count($order_detail->customers_items) > 0) @foreach($order_detail->customers_items as $key => $items) @php $item_Detail = \App\Models\Variation::Where('item_id',$items->item_id)->first(); $add_pp_price = $item_Detail->pp_price; @endphp
    {{$add_pp_price}} @endforeach @else @endif
    ₹ {{$order_detail->quantity * $pp_price}} @php $item_total[]=$order_detail->quantity * $pp_price; @endphp @if (count($order_detail->customers_items) > 0) @foreach($order_detail->customers_items as $key => $items)
    {{$add_pp_price * $items->quantity}} @php $addon_total[]=$add_pp_price * $items->quantity @endphp @endforeach @else @endif

    Sub Total :

    @php if(empty($addon_total)) { $addon_total[] = 0; } $sub_total = array_sum($item_total) + array_sum($addon_total); @endphp

    ₹ {{$sub_total}}

    Tax :

    @php $cgst = \App\Models\Tax::Where('id', '1')->first(); $sgst = \App\Models\Tax::Where('id', '2')->first(); $cgst_amount = ($sub_total / 100) * $cgst->percentage; $sgst_amount = ($sub_total / 100) * $sgst->percentage; $tax_amount = round($sgst_amount + $cgst_amount); @endphp

    ₹ {{$tax_amount}}

    Delivery Charge :

    ₹ {{$delivery_charge}}

    Discount :

    ₹ {{$discount_amount}}

    Grand Total :

    @php $grand_total = ($sub_total + $tax_amount + $delivery_charge) - $discount_amount; @endphp

    ₹ {{ $grand_total}}

    Note: Thank you for doing Business with us.