@extends('layouts.admin') @section('content')
@include('includes.form-success') @if($activation_notify != "") @endif @if(Session::has('cache'))

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

@endif
{{ __('Orders Pending!') }}
{{count($pending)}} {{ __('View All') }}
{{ __('Orders Procsessing!') }}
{{count($processing)}} {{ __('View All') }}
{{ __('Orders Completed!') }}
{{count($completed)}} {{ __('View All') }}
{{ __('Total Products!') }}
{{count($products)}} {{ __('View All') }}
{{ __('Total Customers!') }}
{{count($users)}} {{ __('View All') }}
{{ __('Total Posts!') }}
{{count($blogs)}} {{ __('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('Y-m-d',strtotime($data->created_at)) }}
{{ __('Recent Customer(s)') }}
@foreach($rusers as $data) @endforeach
{{ __('Customer Email') }} {{ __('Joined') }}
{{ $data->email }} {{ $data->created_at }}
{{ __('Popular Product(s)') }}
@foreach($poproducts as $data) @endforeach
{{ __('Featured Image') }} {{ __('Name') }} {{ __('Category') }} {{ __('Type') }} {{ __('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->type }} {{ $data->showPrice() }}
{{ __('Recent Product(s)') }}
@foreach($pproducts as $data) @endforeach
{{ __('Featured Image') }} {{ __('Name') }} {{ __('Category') }} {{ __('Type') }} {{ __('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->type }} {{ $data->showPrice() }}
{{ __('Total Sales in Last 30 Days') }}
{{ __('Top Referrals') }}
{{ __('Most Used OS') }}
@endsection @section('scripts') @endsection