@extends('admin.layout') @section('content')

Welcome back, {{ Auth::guard('admin')->user()->first_name }} {{ Auth::guard('admin')->user()->last_name }}!

Team Members

{{ $currentLang->members()->count() }}

Subscribers

{{ App\Models\Subscriber::count() }}

Blogs

{{ $currentLang->blogs()->count() }}

Products

{{ $currentLang->products()->count() }}

Users

{{ App\Models\User::count() }}

Custom Pages

{{ $currentLang->pages()->count() }}

{{ __('Life Time Orders') }}

{{ $allOrders->count() }}

{{ __('Today Order') }}

{{ $allOrders->where('created_at', '>=', Carbon\Carbon::today())->count() }}

{{ __('Today Sale')}}

{{ $be->base_currency_symbol_position == 'left' ? $be->base_currency_symbol : '' }} {{ $allOrders->where('created_at', '>=', Carbon\Carbon::today())->sum('total') }} {{ $be->base_currency_symbol_position == 'right' ? $be->base_currency_symbol : '' }}

{{ __('Total Customer') }}

{{ App\Models\User::where('status',1)->count() }}

{{__('Lifetime Sale') }}

{{ $be->base_currency_symbol_position == 'left' ? $be->base_currency_symbol : '' }} {{ $allOrders->sum('total') }} {{ $be->base_currency_symbol_position == 'right' ? $be->base_currency_symbol : '' }}

{{ __('Total Reservation') }}

{{ App\Models\TableBook::count() }}

Recent Reservation Requests

Top 10 latest table reservation requests

@if (count($table_books) == 0)

NO TABLE BOOKING REQUEST FOUND

@else
@foreach ($table_books as $key => $reservation) @includeif('admin.reservations.reservation-details') @endforeach
Name Email Details
{{ convertUtf8($reservation->name) }} {{ convertUtf8($reservation->email) }}
@endif

Recent Orders

Top 10 latest orders

@if (count($orders) > 0)
@foreach ($orders as $key => $order) @endforeach
Order Number Date Total Payment Status Details
#{{ $order->order_number }} {{ convertUtf8($order->created_at->format('d-m-Y')) }} {{ $order->currency_symbol_position == 'left' ? $order->currency_symbol : '' }} {{ round($order->total, 2) }} {{ $order->currency_symbol_position == 'right' ? $order->currency_symbol : '' }} @if ($order->payment_status == 'Pending' || $order->payment_status == 'pending')

{{ $order->payment_status }}

@else

{{ $order->payment_status }}

@endif
Details
@else

NO ORDER FOUND

@endif
@endsection