@extends('user.layouts.master') @section('main-content')
@include('user.layouts.notification')

Dashboard

{{--
Category
{{\App\Models\Category::countActiveCategory()}}
Products
{{\App\Models\Product::countActiveProduct()}}
Order
{{\App\Models\Order::countActiveOrder()}}
Post
{{\App\Models\Post::countActivePost()}}
--}}
@php $orders=DB::table('orders')->where('user_id',auth()->user()->id)->paginate(10); @endphp
@if(count($orders)>0) @foreach($orders as $order) @endforeach @else @endif
S.N. Order No. Name Email Quantity Total Amount Status Action
S.N. Order No. Name Email Quantity Total Amount Status Action
{{$order->id}} {{$order->order_number}} {{$order->first_name}} {{$order->last_name}} {{$order->email}} {{$order->quantity}} ${{number_format($order->total_amount,2)}} @if($order->status=='new') {{$order->status}} @elseif($order->status=='process') {{$order->status}} @elseif($order->status=='delivered') {{$order->status}} @else {{$order->status}} @endif
@csrf @method('delete')

You have no order yet!! Please order some products

{{$orders->links()}}
@endsection @push('scripts') @endpush