@extends('layouts.frontend') @section('title', 'Dashboard | '. Config::get('siteSetting.site_name') ) @section('css') @endsection @section('content')
@include('users.inc.sidebar')

Hello, {{Auth::user()->name}}

Total Orders
@php $orderStatus = array_count_values(array_column($orders->toArray(), 'order_status')); @endphp
Wallet Balance
{{Config::get('siteSetting.currency_symble')}} {{$profile->wallet_balance}}
Earning Points
0

Recent Orders

@foreach($orders as $order) @if($order->payment_method != 'pending' || $order->offer_id == null) order_status == 'cancel') style="background:#ff000026" @endif> @endif @endforeach
Order ID Order Date Qty Amount Payment Method Payment Status Shipping Status Action
{{$order->order_id}} {{Carbon\Carbon::parse($order->order_date)->format('M d, Y')}} {{$order->total_qty}} {{$order->currency_sign .$order->total_price}} {{ ucfirst(str_replace('-', ' ', $order->payment_method))}} {{$order->payment_status}} @if($order->order_status == 'delivered') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'accepted') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'ready-to-ship') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'cancel') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'on-delivery') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'return') {{ str_replace('-', ' ', $order->order_status)}} @else Pending @endif View
@endsection @section('js') @endsection