@extends('layouts.vispa-auth')
@section('title', vtr('Dashboard VisPa', 'VisPa Dashboard'))
@section('badge', 'Dashboard')
@section('heading')
@if ($mode === 'admin' && ! empty($isSuperAdmin) && ! $isSuperAdmin)
Dashboard {{ $adminMunicipality?->name ?? 'Comune' }}
@else
{{ vtr('Dashboard VisPa', 'VisPa Dashboard') }}
@endif
@endsection
@section('subtitle')
@if ($mode === 'admin')
@if (! empty($isSuperAdmin) && $isSuperAdmin)
Panoramica amministrativa della piattaforma sosta.
@else
Panoramica delle soste del Comune e andamento degli ultimi giorni.
@endif
@elseif ($mode === 'checker')
{{ vtr('Area operativa per controllo e verifica soste.', 'Operational area for parking checks and verification.') }}
@else
{{ vtr('Panoramica delle tue soste e del tuo wallet.', 'Overview of your parking sessions and wallet.') }}
@endif
@endsection
@section('content')
@if ($mode === 'admin')
@if (! empty($isSuperAdmin) && $isSuperAdmin)
Andamento giornaliero delle soste e dell’importo sosta di competenza Comune.
Nessuna sosta recente.
{{ vtr(
'La ricerca targa dedicata sarà il prossimo modulo verificatori.',
'The dedicated plate search will be the next checker module.'
) }}
{{ vtr(
'Qui trovi insieme le soste orarie e i titoli giornalieri o periodici acquistati più di recente.',
'This area combines your most recent hourly sessions and daily or periodic passes.'
) }}
Ultimi 14 giorni
€ {{ number_format((float) $row['parking_amount'], 0, ',', '.') }}
Ultime soste
@if ($latestAdminSessions->count())
@foreach ($latestAdminSessions as $session)
@php
$snapshot = $session->calculation_snapshot ?? [];
$municipalityAmount = (float) $session->parking_amount;
if (
$session->status === 'stopped'
&& ! empty($snapshot['stop'])
&& is_array($snapshot['stop'])
) {
$municipalityAmount = (float) ($snapshot['stop']['parking_amount'] ?? $municipalityAmount);
}
@endphp
ID
Targa
@if (! empty($isSuperAdmin) && $isSuperAdmin)
Comune
@endif
Area
Inizio
Fine
Stato
Importo Comune
@endforeach
#{{ $session->id }}
{{ $session->plate }}
@if (! empty($isSuperAdmin) && $isSuperAdmin)
{{ $session->municipality?->name }}
@endif
{{ $session->parkingArea?->name }}
{{ $session->start_at?->format('d/m/Y H:i') }}
{{ $session->end_at?->format('d/m/Y H:i') }}
{{ $session->status }}
€ {{ number_format($municipalityAmount, 2, ',', '.') }}
Dettaglio
{{ vtr('Controlli', 'Checks') }}
{{ vtr('Ultime soste e titoli', 'Latest parking sessions and passes') }}
{{ vtr( 'Non hai ancora soste o titoli collegati al tuo account.', 'You do not have any parking sessions or passes linked to your account yet.' ) }}
{{ vtr( 'Per difficoltà su sosta, wallet o pagamenti puoi contattare l’assistenza.', 'For help with parking, wallet or payments, you can contact support.' ) }}
{{ vtr( 'Puoi scriverci anche su WhatsApp indicando email, targa e problema riscontrato.', 'You can also write to us on WhatsApp, including your email, plate and issue.' ) }}