{{ $cancel_orders->firstitem() + $key }} |
@if($cancel_order->aggregator == 'shero-home'){{ $cancel_order->order_number }}@elseif($cancel_order->aggregator == 'swiggy' || $cancel_order->aggregator == 'zomato' ){{ $cancel_order->aggregator_order_number }} @endif |
@php
$subtotal_third = 0;
$subtotal_cus_third = 0;
@endphp
@php
$orderdetails = App\Models\OrderDetail::Where('order_id',$cancel_order->id)->get();
if(count($orderdetails) > 0)
{
foreach ($orderdetails as $key => $order_detail) {
# code...
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
₹ {{ number_format($subtotal_third + $subtotal_cus_third,2) }}
|
@if($cancel_order->order_status == 'cancelled')
Cancelled
@endif
|
{{ date('d-m-Y', strtotime($cancel_order->booking_date)) }} |
@if($cancel_order->user)
{{ $cancel_order->user->name }}
@else
{{$cancel_order->customer_name}}
@endif
|
@if($cancel_order->user)
{{ $cancel_order->user->mobile_number }}
@else
{{$cancel_order->customer_phone_number}}
@endif
|
@if($cancel_order->order_status == 'cancelled')
{{ $cancel_order->cancel_reason }}
@endif
|
@endforeach