Online Orders/{{ $order_no }}
{{-- start --}}

@if ($aggregator == 'shero-home') Shero Home @elseif($aggregator == 'zomato') Zomato @elseif($aggregator == 'swiggy') Swiggy @endif - ₹ {{ $grand_total }} Payment
{{ $dayOfWeek }},{{ $booking_date }} {{ $booking_time }} {{ $timeString }} @if ($OrderStatus == 'pending') Pending @endif @if ($OrderStatus == 'placed') Placed @endif @if ($OrderStatus == 'process') Process @endif @if ($OrderStatus == 'ready') Ready @endif @if ($OrderStatus == 'rider_assigned') Rider Assigned @endif @if ($OrderStatus == 'pickup_shop_reached') Pickup Shop Reached @endif @if ($OrderStatus == 'delivery_location_reached') Delivery Location Reached @endif @if ($OrderStatus == 'dispatched') Dispatched @endif @if ($OrderStatus == 'delivered') Delivered @endif @if ($OrderStatus == 'cancelled') Cancelled @endif

Delivery Date : {{ $delivery_date }}

Delivery Time : {{ $delivery_time }}

@php $subtotal_third = 0; $subtotal_cus_third = 0; @endphp @if ($order_details) @foreach ($order_details as $order_detail) @php if (count($order_detail->customers_items) > 0) { foreach ($order_detail->customers_items as $key => $items) { $datacustom = $items->unit_price * $items->quantity; $subtotal_cus_third += (float) $datacustom; } } $dataaddSub = $order_detail->quantity * $order_detail->unit_price; $subtotal_third += (float) $dataaddSub; @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
    ₹ {{ $order_detail->unit_price }} @if (count($order_detail->customers_items) > 0) @foreach ($order_detail->customers_items as $key => $items)
    ₹ {{ $items->unit_price }} @endforeach @else @endif
    ₹ {{ $order_detail->quantity * $order_detail->unit_price }} @if (count($order_detail->customers_items) > 0) @foreach ($order_detail->customers_items as $key => $items)
    ₹ {{ $items->unit_price * $items->quantity }} @endforeach @else @endif
    {{-- start --}}

    Sub Total :

    ₹ {{ $subtotal_third + $subtotal_cus_third }}

    Tax :

    ₹ {{ $tax_amount }}

    Delivery Charge :

    ₹ {{ $delivery_charge }}

    @if ($packaging_charge != '0')

    Packaging Charge :

    ₹ {{ $packaging_charge }}

    @else @endif

    Discount :

    (-)₹ {{ $discount_amount }}

    Grand Total :

    ₹ {{ $grand_total }}
    {{-- end --}}

    S.No Name Detail
    1 Customer Name {{ $user_name }}
    2 Customer Number {{ $user_number }}
    3 Customer Email {{ $user_email }}
    4 Customer Address {{ $user_address }}

    @if ($razorpay_id != null) @endif
    S.No Payment Gateway Detail
    1 Payment Type @if ($payment_method_id == 1) Cash On Delivery @elseif($payment_method_id == 2) Razorpay @elseif($payment_method_id == 3) Paid with Wallet @elseif($payment_method_id == 4) COD + Wallet @elseif($payment_method_id == 5) Razorypay + Wallet @endif
    2 Payment Status @if ($payment_status == 1) Paid @else Not Paid @endif
    3 Razorpay Id {{ $razorpay_id }}

    Order Status
    @if (count($normal_orderStatus) > 0) @foreach ($normal_orderStatus as $normal_order_Status) @if ($normal_order_Status->order_status != null)
    @php $status = $order->status; // Replace this with your actual status variable @endphp @if($status == 'placed') @if($normal_order_Status->order_status->name == 'placed' )
    @else
    @endif @elseif($status == 'process') @if($normal_order_Status->order_status->name == 'placed' || $normal_order_Status->order_status->name == 'process')
    @else
    @endif @elseif($status == 'ready') @if($normal_order_Status->order_status->name == 'placed' || $normal_order_Status->order_status->name == 'process' || $normal_order_Status->order_status->name == 'ready')
    @else
    @endif @elseif($status == 'dispatched') @if($normal_order_Status->order_status->name == 'placed' || $normal_order_Status->order_status->name == 'process' || $normal_order_Status->order_status->name == 'ready' || $normal_order_Status->order_status->name == 'dispatched')
    @else
    @endif @elseif($status == 'delivered') @if($normal_order_Status->order_status->name == 'placed' || $normal_order_Status->order_status->name == 'process' || $normal_order_Status->order_status->name == 'ready' ||$normal_order_Status->order_status->name == 'dispatched' || $normal_order_Status->order_status->name == 'delivered' )
    @else
    @endif @else
    @endif
    @if ($normal_order_Status->order_status->name == 'placed')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->booking_time != null) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->booking_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif

    @elseif($normal_order_Status->order_status->name == 'process')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->accept_time != null) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->accept_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif

    @elseif($normal_order_Status->order_status->name == 'ready')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->ready_time != null) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->ready_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif

    @elseif($normal_order_Status->order_status->name == 'dispatched')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->dispatched_time != null) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->dispatched_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif

    @elseif($normal_order_Status->order_status->name == 'delivered')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->delivered_time != null) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->delivered_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif

    @endif
    @php @endphp
    @endif @endforeach @endif
    {{-- middle --}}
    Delivered Status
    @if (count($Assignorder_status) > 0) @foreach ($Assignorder_status as $normal_order_Status) @if ($normal_order_Status->order_status != null)
    @if($status == 'rider_assigned') @if($normal_order_Status->order_status->name == 'rider_assigned' )
    @else
    @endif @elseif($status == 'pickup_shop_reached') @if($normal_order_Status->order_status->name == 'rider_assigned' || $normal_order_Status->order_status->name == 'pickup_shop_reached' )
    @else
    @endif @elseif($status == 'delivery_location_reached') @if($normal_order_Status->order_status->name == 'rider_assigned' || $normal_order_Status->order_status->name == 'pickup_shop_reached' || $normal_order_Status->order_status->name == 'delivery_location_reached')
    @else
    @endif @elseif($status == 'delivered') @if($normal_order_Status->order_status->name == 'rider_assigned' || $normal_order_Status->order_status->name == 'pickup_shop_reached' || $normal_order_Status->order_status->name == 'delivery_location_reached' || $normal_order_Status->order_status->name == 'delivered' )
    @else
    @endif @else
    @endif
    @if ($normal_order_Status->order_status->name == 'rider_assigned')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->time != null) @if($order->time->allot_time) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->time->allot_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif @endif

    @elseif($normal_order_Status->order_status->name == 'pickup_shop_reached')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->time != null) @if($order->time->arrival_time) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->time->arrival_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif @endif

    @elseif($normal_order_Status->order_status->name == 'delivery_location_reached')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->time != null) @if($order->time->customer_doorstep_arrival_time) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->time->customer_doorstep_arrival_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif @endif

    @elseif($normal_order_Status->order_status->name == 'delivered')

    {{ $normal_order_Status->assigned_order_status_name }}

    @if ($order->time != null) @if($order->time->delivery_time) @php $carbonDate = Carbon\Carbon::createFromTimestamp($order->time->delivery_time); $formattedDate = $carbonDate->format('l M j Y g:i a'); echo $formattedDate; @endphp @endif @endif

    @endif
    @php @endphp
    @endif @endforeach @endif
    {{-- end --}}