@extends('layouts.admin') @section('styles') @endsection @section('content')
@include('includes.form-success') @if (Session::has('cache'))

{{ Session::get('cache') }}

@endif
{{ __('Orders Pending!') }}
{{ $pending }} {{ __('View All') }}
{{ __('Processing Orders') }}
{{ $processing }} {{ __('View All') }}
{{ __('Orders Completed!') }}
{{ $completed }} {{ __('View All') }}
{{ __('Total Products!') }}
{{ $products_total }} {{ __('View All') }}
{{ __('Total Customers!') }}
{{ $users_total }} {{ __('View All') }}
{{ __('Total Posts!') }}
{{ $blogs_total }} {{ __('View All') }}

{{ App\Models\User::where('created_at', '>', Carbon\Carbon::now()->subDays(30))->get()->count() }}

{{ __('New Customers') }}

{{ __('Last 30 Days') }}

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

{{ __('Total Customers') }}

{{ __('All Time') }}

{{ App\Models\Order::where('status', '=', 'completed')->where('created_at', '>', Carbon\Carbon::now()->subDays(30))->get()->count() }}

{{ __('Total Sales') }}

{{ __('Last 30 days') }}

{{ App\Models\Order::where('status', '=', 'completed')->get()->count() }}

{{ __('Total Sales') }}

{{ __('All Time') }}

{{ __('Recent Order(s)') }}
@foreach ($rorders as $data) @endforeach
{{ __('Order Number') }} {{ __('Order Date') }}
{{ $data->order_number }} {{ date('d/m/Y h\hm', strtotime($data->created_at)) }}
{{ __('Recent Customer(s)') }}
@foreach ($rusers as $data) @endforeach
{{ __('Customer Email') }} {{ __('Joined') }}
{{ $data->email }} {{ date('d/m/Y h\hm', strtotime($data->created_at)) }}
{{ __('Popular Product(s)') }}
@foreach ($poproducts as $data) @endforeach
{{ __('Featured Image') }} {{ __('Name') }} {{ __('Category') }} {{ __('Price') }}
{{ mb_strlen(strip_tags($data->name), 'utf-8') > 50 ? mb_substr(strip_tags($data->name), 0, 50, 'utf-8') . '...' : strip_tags($data->name) }} {{ $data->category->name }} @if (isset($data->subcategory))
{{ $data->subcategory->name }} @endif @if (isset($data->childcategory))
{{ $data->childcategory->name }} @endif
{{ $data->showPrice() }}
{{ __('Recent Product(s)') }}
@foreach ($pproducts as $data) @endforeach
{{ __('Featured Image') }} {{ __('Name') }} {{ __('Category') }} {{ __('Price') }}
{{ mb_strlen(strip_tags($data->name), 'utf-8') > 50 ? mb_substr(strip_tags($data->name), 0, 50, 'utf-8') . '...' : strip_tags($data->name) }} {{ $data->category->name }} @if (isset($data->subcategory))
{{ $data->subcategory->name }} @endif @if (isset($data->childcategory))
{{ $data->childcategory->name }} @endif
{{ $data->showPrice() }}
{{ __('Total Sales in Last 30 Days') }}
{{ __('Top Referrals') }}
{{ __('Most Used OS') }}
@endsection @section('scripts') @endsection