@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
@php $counter = 1; @endphp @if(count($orders)>0) @foreach($orders as $order) @php $counter++; @endphp @endforeach @else @endif
# Order No. Name Email Qty. Total Status Action
{{$counter}} {{$order->order_number}} {{$order->first_name}} {{$order->last_name}} {{$order->email}} {{$order->quantity}} ${{number_format($order->total_amount,2)}} @if($order->status=='new') NEW @elseif($order->status=='process') PROCESSING @elseif($order->status=='delivered') DELIVERED @else {{$order->status}} @endif
@csrf @method('delete')

No orders found! Try ordering some products to view it here.

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