@extends('layouts.app') @section('style') @endsection @section('content') @include('shared.messages')
{{__('texte.dashboard.dashboard')}}
@if(auth()->user()->hasRole('Администратор') || auth()->user()->hasRole('Super Admin'))
{{__('texte.dashboard.months')}}
{{__('texte.dashboard.income')}}

{{number_format($last_year_orders->sum('total_amount'),2,',',' ')}}

{{$previous_year_orders->sum('total_amount')!=0 ? number_format($last_year_orders->sum('total_amount')*100/$previous_year_orders->sum('total_amount'),0) : 100}}%
{{__('texte.dashboard.total_income')}}
{{__('texte.dashboard.months')}}
{{__('texte.dashboard.statistics')}}

{{number_format(count($last_year_orders),0,',',' ')}}

{{count($previous_year_orders)!=0 ? number_format(count($last_year_orders)*100/count($previous_year_orders),0) : 100}}%
{{__('texte.dashboard.total_orders')}}
@endif
{{date('d.m.Y')}}
{{__('texte.dashboard.date_time')}}

{{date('H:i:s')}}

{{mb_ucfirst(Carbon\Carbon::now()->translatedFormat('l d ')).mb_ucfirst(Carbon\Carbon::now()->translatedFormat('F Y'))}}
{{__('texte.dashboard.data')}}
{{__('texte.dashboard.last_login')}}

{{__('texte.dashboard.ip')}}: {{auth()->user()->last_login_ip}}

{{date('d.m.Y H:i:s', strtotime(auth()->user()->last_login))}}
@if(auth()->user()->hasRole('Администратор') || auth()->user()->hasRole('Super Admin'))
{{__('texte.dashboard.statistics')}}
{{__('texte.dashboard.current_month')}}
  • {{number_format(count($month_orders),0,',',' ')}}

    {{__('texte.dashboard.current_mont_orders')}}
    {{count($previous_month_orders)!=0 ? number_format(count($month_orders)*100/count($previous_month_orders),0) : 100}}%
  • {{number_format(count($previous_month_orders),0,',',' ')}}

    {{__('texte.dashboard.last_month_orders')}}
    {{count($last_to_previous_month_orders)!=0 ? number_format(count($previous_month_orders)*100/count($last_to_previous_month_orders),0) : 100}}%
  • {{number_format($month_orders->sum('total_amount'),0,',',' ')}}

    {{__('texte.dashboard.current_month_income')}}
    {{$previous_month_orders->sum('total_amount')!=0 ? number_format($month_orders->sum('total_amount')*100/$previous_month_orders->sum('total_amount'),0) : 100}}%
{{__('texte.dashboard.last_orders')}}
@foreach($last_orders as $order) @endforeach
{{__('texte.dashboard.number')}} {{__('texte.dashboard.client')}} {{__('texte.dashboard.obect')}} {{__('texte.dashboard.amount')}} {{__('texte.dashboard.delivery')}} {{__('texte.dashboard.order_date')}} {{__('texte.dashboard.status')}}
{{$order->id}} {{$order->object->client->name}} {{$order->object->name}} {{number_format($order->total_amount,2,',','')}} {{date('d.m.Y',strtotime($order->delivery_date))}} {{date('d.m.Y',strtotime($order->created_at))}} {{__('texte.order_status_arr')[$order->status]}}
@endif
@include('includes.dashboard')
@endsection