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

@if ($aggregator == 'shero-home') Shero Home @elseif($aggregator == 'zomato') Zomato @elseif($aggregator == 'swiggy') Swiggy @endif - ₹ {{ number_format($grand_total,2) }} 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

@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->item->variation->pp_price * $items->quantity; $subtotal_cus_third += (float) $datacustom; } } $dataaddSub = $order_detail->quantity * $order_detail->item->variation->pp_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
    @if($order_detail->item) @if($order_detail->item->variation) ₹ {{ number_format($order_detail->item->variation->pp_price,2) }} @endif @endif @if (count($order_detail->customers_items) > 0) @foreach ($order_detail->customers_items as $key => $items)
    ₹ {{ number_format($items->item->variation->pp_price,2) }} @endforeach @else @endif
    @if($order_detail->item) @if($order_detail->item->variation) ₹ {{ number_format($order_detail->quantity * $order_detail->item->variation->pp_price,2) }} @endif @endif @if (count($order_detail->customers_items) > 0) @foreach ($order_detail->customers_items as $key => $items)
    ₹ {{ number_format($items->item->variation->pp_price * $items->quantity ,2) }} @endforeach @else @endif
    {{-- start --}}

    Sub Total :

    ₹ {{ number_format($subtotal_third + $subtotal_cus_third,2) }}

    {{--

    Tax :

    ₹ {{ $tax_amount }}

    --}} {{--

    Delivery Charge :

    ₹ {{ $delivery_charge }}

    --}} {{-- @if ($packaging_charge != '0')

    Packaging Charge :

    ₹ {{ $packaging_charge }}

    @else @endif --}} {{--

    Discount :

    (-)₹ {{ $discount_amount }}

    --}}

    Grand Total :

    {{-- @php $grand_total = ($subtotal_third + $subtotal_cus_third + $tax_amount + $delivery_charge + $packaging_charge ) - $discount_amount @endphp --}}
    ₹ {{ number_format($subtotal_third + $subtotal_cus_third,2) }}
    {{-- 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($order->payment_method_id == 1) @if($order->status == 'delivered') Paid @else Not Paid @endif @else @if ($payment_status == 1) Paid @else Not Paid @endif @endif
    3 Razorpay Id {{ $razorpay_id }}

    Name Details
    Rider Name {{ $rider_name }}
    Rider Contact Number {{ $rider_contact }}

    Order Status
    @if ($order->status != 'cancelled') @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 @elseif($order->time != null) @if ($order->time->dispatch_time) @php $carbonDate = Carbon\Carbon::parse( $order->time->dispatch_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->delivered_time != null) @php $carbonDate = Carbon\Carbon::createFromTimestamp( $order->delivered_time, ); $formattedDate = $carbonDate->format( 'l,M j ,Y ,g:i a', ); echo $formattedDate; @endphp @elseif($order->time != null) @if ($order->time->delivery_time) @php $carbonDate = Carbon\Carbon::parse( $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 @else @if (count($cancel) > 0) @foreach ($cancel 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 == 'cancelled') @if ($normal_order_Status->order_status->name == 'placed' || $normal_order_Status->order_status->name == 'cancelled')
    @else
    @endif @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 == 'cancelled')

    {{ $normal_order_Status->assigned_order_status_name }}

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

    @endif
    @endif @endforeach @endif @endif
    {{-- middle --}} @if($order->status != 'cancelled') @if ($delivery_type == 0)
    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::parse( $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::parse( $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::parse( $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::parse( $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
    @endif @endif
    {{-- end --}}