@extends('layouts.app') @section('page-title', __('app.nav.dashboard')) @section('content')
{{ $openCount }}
{{ __('app.dashboard.open_tickets') }}
{{ $assignedToMeCount }}
{{ __('app.dashboard.assigned_to_me') }}
{{ $unassignedCount }}
{{ __('app.dashboard.unassigned') }}
{{ $urgentHighCount }}
{{ __('app.dashboard.urgent_high') }}
{{ $createdTodayCount }}
{{ __('app.dashboard.created_today') }}

{{ __('app.dashboard.newest_tickets') }} {{ __('app.dashboard.view_all') }} →

@include('partials.ticket-mini-table', ['tickets' => $newestTickets])

{{ __('app.dashboard.oldest_open_tickets') }}

@include('partials.ticket-mini-table', ['tickets' => $oldestOpenTickets])

{{ __('app.dashboard.priority_breakdown') }}

@foreach ($priorityCounts as $priority => $count)
{{ __('app.ticket.priority.'.$priority) }} {{ $count }}
@endforeach

{{ __('app.dashboard.system_status') }}

{{ __('app.dashboard.last_inbound_mail') }}:
{{ $lastInboundAt ? \Illuminate\Support\Carbon::parse($lastInboundAt)->diffForHumans() : __('app.dashboard.never') }}

{{ __('app.dashboard.last_mailbox_sync') }}:
{{ $lastMailboxSyncAt ? \Illuminate\Support\Carbon::parse($lastMailboxSyncAt)->diffForHumans() : __('app.dashboard.never') }}

@endsection