@extends('store.layouts.container') @section('content')
{{__('dashboard.today_orders_total')}}
{{!empty($today_orders_total) ? $today_orders_total : 0}}
{{__('dashboard.month_orders_total')}}
{{!empty($month_orders_total) ? $month_orders_total : 0}}
{{__('dashboard.year_orders_total')}}
{{!empty($year_orders_total) ? $year_orders_total : 0}}
{{__('dashboard.today_orders_count')}}
{{!empty($today_orders_count) ? $today_orders_count : 0}}
{{__('dashboard.month_orders_count')}}
{{!empty($month_orders_count) ? $month_orders_count : 0}}
{{__('dashboard.year_orders_count')}}
{{!empty($year_orders_count) ? $year_orders_count : 0}}
{{__('dashboard.latest_orders')}}
@foreach($latest_orders as $key=>$row) @endforeach
# {{__('dashboard.order_id')}} {{__('dashboard.order_user')}} {{__('dashboard.count_products')}}
{{$key+1}} {{$row->id}} {{$row->user->name}} {{$row->productsStore(auth()->user()->store_id)->count()}}
{{__('dashboard.products_total')}}
@foreach($most_sold_products as $key=>$row) @endforeach
# {{__('dashboard.product')}} {{__('dashboard.user_order')}}
{{$row->id}} {{$row->currentDescription->title}} {{$row->sold_count ?? '0'}}
@endsection @section('inner_js') @endsection