@extends('store.layouts.container')
@section('content')
{{__('dashboard.today_orders_total')}}
SAR {{!empty($today_orders_total) ? $today_orders_total : 0}}
{{--
25,5%
+4k Today
--}}
{{__('dashboard.month_orders_total')}}
SAR {{!empty($month_orders_total) ? $month_orders_total : 0}}
{{--
5%
+4k Today
--}}
{{__('dashboard.year_orders_total')}}
SAR {{!empty($year_orders_total) ? $year_orders_total : 0}}
{{--
12%
+1k Today
--}}
{{__('dashboard.today_orders_count')}}
{{!empty($today_orders_count) ? $today_orders_count : 0}}
{{--
12%
+13 Today
--}}
{{__('dashboard.month_orders_count')}}
{{!empty($month_orders_count) ? $month_orders_count : 0}}
{{--
25,5%
+4k Today
--}}
{{__('dashboard.year_orders_count')}}
{{!empty($year_orders_count) ? $year_orders_count : 0}}
{{--
5%
+4k Today
--}}
{{ __('dashboard.count_products') }}
{{!empty($store_products_count) ? $store_products_count : 0}}
{{--
12%
+1k Today
--}}
{{--
--}}
{{__('dashboard.latest_orders')}}
| # |
{{__('dashboard.order_id')}} |
{{__('dashboard.order_user')}} |
{{__('dashboard.count_products')}} |
@forelse($latest_orders as $key=>$row)
| {{$key+1}} |
{{$row->id}} |
{{$row->user->name}} |
{{$row->productsStore(auth()->user()->store_id)->count()}} |
@empty
| {{__('dashboard.noResult')}} |
@endforelse
{{__('dashboard.products_total')}}
| # |
{{__('dashboard.product')}} |
{{__('dashboard.user_order')}} |
@foreach($most_sold_products as $key=>$row)
| {{$row->id}} |
{{$row->currentDescription->title}} |
{{$row->sold_count ?? '0'}} |
@endforeach
@endsection
@section('inner_js')
@endsection