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

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

{{count($previous_year_expeditions)!=0 ? number_format(count($last_year_expeditions)*100/count($previous_year_expeditions),0) : 100}}%
{{__('texte.dashboard.total_expeditions')}}
@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_expeditions),0,',',' ')}}

    {{__('texte.dashboard.current_mont_expeditions')}}
    {{count($previous_month_expeditions)!=0 ? number_format(count($month_expeditions)*100/count($previous_month_expeditions),0) : 100}}%
  • {{number_format(count($previous_month_expeditions),0,',',' ')}}

    {{__('texte.dashboard.last_month_expeditions')}}
    {{count($last_to_previous_month_expeditions)!=0 ? number_format(count($previous_month_expeditions)*100/count($last_to_previous_month_expeditions),0) : 100}}%
{{__('texte.dashboard.last_expeditions')}}
@foreach($last_expeditions as $expedition) @endforeach
{{__('texte.dashboard.number')}} {{__('texte.dashboard.date')}} {{__('texte.dashboard.storage')}} {{__('texte.dashboard.creator')}} {{__('texte.dashboard.type')}} {{__('texte.dashboard.status')}}
{{$expedition->id}} {{date('d.m.Y',strtotime($expedition->date))}} {{$expedition->storage->name}} {{$expedition->user->name}} {{$expedition->type}} {{__('texte.expeditions_statuses_arr')[$expedition->status]}}
@endif
@include('includes.dashboard')
@endsection