@extends('layouts.app') @section('site_title', formatTitle([__('Dashboard'), config('settings.title')])) @section('content')

{{ Auth::user()->name }}

@if(paymentProcessors())
@include('icons.package', ['class' => 'text-muted fill-current width-4 height-4'])
@else
@include('icons.email', ['class' => 'text-muted fill-current width-4 height-4'])
{{ Auth::user()->email }}
@endif
@if(paymentProcessors()) @if(Auth::user()->planIsDefault()) @else @endif @endif
{{ __('Documents') }}
{{ number_format((request()->input('overview') != 'total' ? Auth::user()->documents_month_count : Auth::user()->documents_total_count), 0, __('.'), __(',')) }}
{{ __('Words') }}
{{ number_format((request()->input('overview') != 'total' ? Auth::user()->words_month_count : Auth::user()->words_total_count), 0, __('.'), __(',')) }}
{{ __('Images') }}
{{ number_format((request()->input('overview') != 'total' ? Auth::user()->images_month_count : Auth::user()->images_total_count), 0, __('.'), __(',')) }}
{{ __('Time saved') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if((request()->input('overview') != 'total' && Auth::user()->documents_month_count == 0) || (request()->input('overview') == 'total' && Auth::user()->documents_total_count == 0)) 0 @else {{ (clone $now)->diffForHumans((clone $now)->subMicroseconds((((request()->input('overview') != 'total' ? Auth::user()->words_month_count : Auth::user()->words_total_count) / 40) * 60 * 1000 * 1000)), ['syntax' => true, 'parts' => 2, 'short' => true]) }} @endif
@foreach($templates as $template)
@if($template->isCustom()) {{ $template->icon }} @else @include('icons.' . $template->icon, ['class' => 'fill-current width-4 height-4']) @endif
{{ __($template->name) }}
@include((__('lang_dir') == 'rtl' ? 'icons.chevron-left' : 'icons.chevron-right'), ['class' => 'flex-shrink-0 width-3 height-3 fill-current mx-2'])
@endforeach

{{ __('Activity') }}

{{ __('Recent documents') }}
@if(count($recentDocuments) == 0) {{ __('No data') }}. @else
@foreach($recentDocuments as $document)
@if($document->template->isCustom()) {{ $document->template->icon }} @else @include('icons.' . $document->template->icon, ['class' => 'fill-current width-4 height-4 text-' . categoryColor($document->template->category_id)]) @endif
{{ $document->name }} @if($document->favorite)
@include('icons.star', ['class' => 'fill-current width-4 height-4 flex-shrink-0'])
@endif
{{ Str::substr(strip_tags($document->result) ?? __('No data') . '.', 0, 100) }}
@include('documents.partials.menu')
@endforeach
@endif
@if(count($recentDocuments) > 0) @endif
{{ __('Recent images') }}
@if(count($recentImages) == 0) {{ __('No data') }}. @else
@foreach($recentImages as $image)
{{ $image->name }} @if($image->favorite)
@include('icons.star', ['class' => 'fill-current width-4 height-4 flex-shrink-0'])
@endif
{{ config('images.resolutions')[$image->resolution] }}
@include('images.partials.menu')
@endforeach
@endif
@if(count($recentImages) > 0) @endif
@endsection @include('shared.sidebars.user')