@extends('layouts.stores_dashboard_layout') @section('title') {{trans('stores_dashboard.stores_dashboard')}} @endsection @section('style') @endsection @section('content')
{{trans('stores_dashboard.stores_dashboard')}}

{{trans('stores_dashboard.welcome')}}

{{count($new_orders)}}

{{trans('stores_dashboard.new_orders')}}

{{count($active_orders)}}

{{trans('stores_dashboard.active_orders')}}

{{count($finish_orders)}}

{{trans('stores_dashboard.finished_orders')}}

{{count($products)}}

{{trans('stores_dashboard.products')}}
{{trans('stores_dashboard.recent_orders')}}

{{trans('stores_dashboard.recent_orders_desc')}}

@foreach($new_orders as $order) @endforeach
{{trans('stores_dashboard.number')}} {{trans('stores_dashboard.order_number')}} {{trans('stores_dashboard.name')}} {{trans('stores_dashboard.deliver_address')}} {{trans('stores_dashboard.total_price')}} {{trans('stores_dashboard.created_at')}} {{trans('stores_dashboard.deliver_time')}}
{{ $i++ }} {{$order->citc_referenceCode}} {{$order->user?->name}} {{$order->receive_address}} {{$order->total_price}} {{date('d-m-Y', strtotime($order->created_at))}} {{$order->deliver_time}}{{trans('stores_dashboard.hour')}}
{{trans('stores_dashboard.products')}}
@foreach($products as $product)
{{$product->name}}

{{$product->desc}}

{{$product->groups()->first()?->price()}}

@endforeach
{{trans('stores_dashboard.reviews')}}
@foreach($reviews as $review)
{{$review->user->name}}
@if($review->rate==0)
@elseif($review->rate>0 && $store->rating()<=1)
@elseif($store->rating()>1 && $store->rating()<=2)
@elseif($store->rating()>2 && $store->rating()<=3)
@elseif($store->rating()>3 && $store->rating()<=4)
@elseif($store->rating()==5)
@endif

{{$review->comment}}


@endforeach
@endsection @section('scripts') @endsection