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

{{__('admin.admin-dashboard')}}

{{__('admin.welcome-back')}}

{{__('admin.admin-dashboard')}}

{{auth()->guard('admin')->user()->name}}
{{--

للتجارة الإلكترونية

--}}
{{$products}}

{{__('admin.purchased-products')}}

{{$totalProfits}} {{$currency->value}}

{{__('admin.profits')}}

{{__('admin.monthly-income')}}

{{__('admin.this-month')}}

{{$monthlyProfits}} {{$currency->value}}

{{$monthlyPreviousProfitsPercentage}}% {{__('admin.previous-month')}}

{{--
--}} {{-- {{__('admin.view-more')}} --}} {{--
--}}

{{__('admin.view-more')}}

{{__('admin.finished-orders')}}

{{$orders}}

{{__('admin.purchased-products')}}

{{$totalPurchasedProducts}}

{{__('admin.refunded-orders')}}

{{$refundedOrders}}

{{__('admin.order-statistics')}}

@if(count($cities))

{{__('admin.top-cities')}}

{{$cities[0]->orders_count}}

{{$cities[0]->name}}

@php $i=1; @endphp @foreach($cities as $key=>$city) @php $i = ($i-0.25); @endphp @endforeach

{{$city->name}}

{{$city->orders_count}}
@endif

{{__('admin.products-statistics')}}

{{__('admin.latest-orders')}}

@foreach($orders5 as $order) @endforeach
{{__('admin.id')}} {{__('admin.orders_num')}} {{__('admin.total')}} {{__('admin.status')}} {{__('admin.shipping')}} {{__('admin.payment_method')}} {{__('admin.created_at')}} {{__('admin.more')}}
{{$order->id}} {{$order->orders_num}} {{$order->total}} {{$currency->value}} @if($order->order_status==0) {{__('admin.pending')}} @elseif($order->order_status==1) {{__('admin.processing')}} @elseif($order->order_status==2) {{__('admin.on-the-way')}} @elseif($order->order_status==3) {{__('admin.delivered')}} @elseif($order->order_status==-1) {{__('admin.cancelled')}} @elseif($order->order_status==4) {{__('admin.refunded')}} @else {{__('admin.refunded-admin')}} @endif {{$order->shipping}} {{$currency->value}} @if($order->payment_method==0) {{__('admin.cash')}} @else {{__('admin.online')}} @endif {{Carbon\Carbon::parse($order->created_at)->locale(app()->getLocale())->translatedFormat('l dS F G:i - Y')}}
@can('edit_orders') @endcan @can('delete_orders') @endcan
@endsection @section('extra-js') @endsection