@php if (Auth::check()) { echo ""; } else { header("Location: " . URL::to('/'), true, 302); exit(); } use App\Cart; @endphp @extends('frontend.layouts.home') @section('content') @include('frontend.layouts.partials.usermenu') @if(Auth::user()->status == 0) @include('frontend.layouts.partials.otpactive') @else
Manage Orders
@include('backend.layouts.error')
Product
Price
Payment
Status
Shipping Info
Action
@if(count($orders) > 0) @foreach($orders as $order)
Price: {{$order->price}}
{{$order->status}}

{{$order->delivery_status}}

Tracking Id: {{$order->tracking_id}}

@if($order->delivery_status == "Processing") Cancle Order @elseif($order->delivery_status == "Out for Delivery") Received @elseif($order->delivery_status == "Delivered") Order Delivered @endif
Name: {{$order->name}} Phone: {{$order->phone}} City: {{$order->city_name}} Address: {{$order->shipping_address}}
@endforeach @endif {{-- @foreach($orders as $order) @php $cart_ids = unserialize($order->carts_id); @endphp @if($order->status == 0) @elseif($order->status == 1) @elseif($order->status == 2) @endif @endforeach
Customer Products Total Price Payment Status Action
{{$order->name}}
{{$order->phone}}
{{$order->email}}
Shipping City{{$order->city}}
Shipping Address: {{$order->shipping_address}}
Tracking Id: {{$order->tracking_id}}
@foreach($cart_ids as $cart_id) @php $cart = Cart::find($cart_id); @endphp @if(!is_null($cart))

{{$cart->product->title}}
Price {{$cart->price}} Attributes @php $attribute_options = $cart->attribute_options; $attribute_options = unserialize($attribute_options); @endphp @foreach($attribute_options as $option) {{$option }} @endforeach

@endif @endforeach
{{$order->amount}} @if($order->is_paid == 0) Not paid @endif

@if($order->status == 0) Processing @elseif($order->status == 1) Out for Delivery @elseif($order->status == 2) Delivered @endif

Cancle Order Order Received Order Delivered
--}} {{ $orders->links() }}
@endif @endsection