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

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

@endif
{{ __('Orders Pending!') }}
{{ $data['pending_orders'] }} {{ __('View All') }}
{{ __('Orders Processing!') }}
{{ $data['processing_orders'] }} {{ __('View All') }}
{{ __('Orders Completed!') }}
{{ $data['completed_orders'] }} {{ __('View All') }}
{{ __('Total Products!') }}
{{ $data['products_total'] }} {{ __('View All') }}
{{ __('Total Customers!') }}
{{ $data['customers_total'] }} {{ __('View All') }}

{{ $data['last_month_customers'] }}

{{ __('New Customers') }}

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

{{ $data['last_month_orders'] }}

{{ __('Total Sales') }}

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

{{ $data['completed_orders'] }}

{{ __('Total Sales') }}

{{ __('All Time') }}

{{ __('Recent Order(s)') }}
@foreach ($data['recent_orders'] as $order) @endforeach
{{ __('Order Number') }} {{ __('Order Date') }}
{{ $order->order_number }} {{ date('Y-m-d', strtotime($order->created_at)) }}
{{ __('Recent Customer(s)') }}
@foreach ($data['recent_customers'] as $customer) @endforeach
{{ __('Customer Email') }} {{ __('Joined') }}
{{ $customer->customer_email }} {{ $customer->created_at }}
{{ __('Popular Product(s)') }}
@foreach ($data['popular_products'] as $product) @endforeach
{{ __('Featured Image') }} {{ __('Name') }} {{ __('Category') }} {{ __('Type') }} {{ __('Price') }}
{{ mb_strlen(strip_tags($product->name), 'utf-8') > 50 ? mb_substr(strip_tags($product->name), 0, 50, 'utf-8') . '...' : strip_tags($product->name) }} {{ $product->category->name }} @if (isset($product->subcategory))
{{ $product->subcategory->name }} @endif @if (isset($product->childcategory))
{{ $product->childcategory->name }} @endif
{{ $product->type }} {{ $product->showPrice() }}
{{ __('Recent Product(s)') }}
@foreach ($data['recent_products'] as $recent_product) @endforeach
{{ __('Featured Image') }} {{ __('Name') }} {{ __('Category') }} {{ __('Type') }} {{ __('Price') }}
{{ mb_strlen(strip_tags($recent_product->name), 'utf-8') > 50 ? mb_substr(strip_tags($recent_product->name), 0, 50, 'utf-8') . '...' : strip_tags($recent_product->name) }} {{ $recent_product->category->name }} @if (isset($recent_product->subcategory))
{{ $recent_product->subcategory->name }} @endif @if (isset($recent_product->childcategory))
{{ $recent_product->childcategory->name }} @endif
{{ $recent_product->type }} {{ $recent_product->showPrice() }}
{{ __('Total Sales in Last 30 Days') }}
@endsection @section('scripts') @endsection