@extends('backend.layouts.app') @section('content')

{{translate('Statistic Dashboard')}}

{{$adminsCount}}
{{translate('Total Admins')}}
{{$customersCount}}
{{translate('Total Customer')}}
{{$totalcarrier}}
{{translate('Total Carrier')}}
{{$totalProfits}} $
{{translate('Total Profits')}}
{{-- cubicBezier , stepline , monotoneCubic ,straight ,smooth this shapes for charts --}}

Product Orders Last New Orders

@if ($orders->isEmpty()) @else @foreach($orders as $order) @endforeach @endif
ID Created Customer Total Status
{{ __('No data in database record') }}
{{ $loop->index + 1 }} {{ $order->created_at->format('Y-m-d') }} {{ $order->user ? $order->user->name : 'Guest' }} {{ number_format($order->grand_total, 2) }} {{ $order->currency->code ?? '' }} @if ($order->order_status == 1) {{ translate('Accepted') }} @else {{ translate('Declined') }} @endif
@foreach($order->orderDetails as $detail) @endforeach
Product Cost Qty Total On Hand
{{ $detail->product ? $detail->product->getTranslation('name') : ' Image' }}
{{ $detail->product ? $detail->product->getTranslation('name') : 'N/A' }}
{{ $detail->product ? $detail->product->getTranslation('description') : 'No description' }}
{{ number_format($detail->price, 2) }} {{ $detail->quantity }} {{ number_format($detail->price * $detail->quantity, 2) }} {{ $detail->product && $detail->product->stockDetails ? $detail->product->stockDetails->stock : 'N/A' }}

Stock Report Total {{ $stocks->sum('qty') }} Items in the Stock

@if ($stocks->isEmpty()) @else @foreach ($stocks as $stock) @endforeach @endif
Product Image Product Name SKU Price Inventory Status Quantity
{{ __('No data in database record') }}
{{ $stock['product_name'] }} {{ $stock['product_id'] }} ${{ number_format($stock['price'], 2) }} {{ $stock['stock_name'] }} {{ $stock['status'] == 1 ? 'Available' : 'Not available' }} {{ $stock['qty'] }} PCS
@endsection @section('script') @endsection