@extends('frontend.layouts.user.master') @section('title', 'Dashboard') @section('content') @include('frontend.layouts.nav-bar')

Welcome back! FreshCart

FreshCart is simple & clean design for developer and designer.

Create Product

Earnings

$93,438.78

Monthly revenue

Orders

{{ auth()->user()->orders->count() }}

{{-- 35+New Sales --}}

Customer

{{-- total customers count --}} {{ auth()->user()->orders()->with('user')->get()->unique('user_id')->count() }}

{{-- 30+new in 2 days --}}

Revenue

(+63%) than last year)

Total Sales

  • Shippings $32.98 (2%)
  • Refunds $11 (11%)
  • Order $14.87 (1%)
  • Income 3,271 (86%)

Sales Overview

Total Profit
$1,619 (8.6%)
Total Income
$3,571 (86.4%)
Total Expenses
$3,430 (74.5%)
Start your day with New Notification.

You have 2 new notification

Monitor your Sales and Profitability

View Performance

Recent Order

@foreach (auth()->user()->orders()->orderBy('created_at', 'desc')->get() as $order) @endforeach
Order Number Order Date Price Status
{{ $order->order_number }} {{ $order->created_at->format('d M Y') }} £{{ $order->grand_total }} @php // $orderstatus = 'pending','approved','decline','packing','performa_invoice','invoice_review','delivered','cancelled','completed','shipping','invoiced','shipped' $status = $order->status; $color = ''; if ($status == 'pending') { $color = 'warning'; } elseif ($status == 'approved') { $color = 'primary'; } elseif ($status == 'decline') { $color = 'danger'; } elseif ($status == 'packing') { $color = 'info'; } elseif ($status == 'performa_invoice') { $color = 'success'; } elseif ($status == 'packed') { $color = 'primary'; } elseif ($status == 'invoice_review') { $color = 'secondary'; } elseif ($status == 'delivered') { $color = 'success'; } elseif ($status == 'cancelled') { $color = 'danger'; } elseif ($status == 'completed') { $color = 'success'; } elseif ($status == 'shipping') { $color = 'info'; } elseif ($status == 'invoiced') { $color = 'success'; } elseif ($status == 'shipped') { $color = 'success'; } else { $color = 'dark'; } @endphp {{ $status }}
@endsection