56 lines
3.0 KiB
PHP
56 lines
3.0 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>Ticket - NetGescon</title>
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
</head>
|
|
<body class="min-h-screen bg-slate-100 text-slate-900">
|
|
<div class="max-w-4xl mx-auto p-4 md:p-8">
|
|
<div class="flex items-center justify-between gap-3 mb-4">
|
|
<div>
|
|
<h1 class="text-xl md:text-2xl font-semibold">I miei ticket</h1>
|
|
<p class="text-sm text-slate-600">Area mobile per segnalazioni e stato interventi.</p>
|
|
</div>
|
|
<a href="{{ route('condomino.tickets.mobile') }}" class="inline-flex items-center rounded-lg bg-blue-600 px-4 py-2 text-white text-sm font-medium">Nuovo ticket</a>
|
|
</div>
|
|
|
|
<div class="flex gap-3 mb-4">
|
|
<a href="{{ route('condomino.profile') }}" class="text-sm text-blue-700 hover:underline">Profilo (email/password)</a>
|
|
<a href="{{ route('condomino.dashboard') }}" class="text-sm text-blue-700 hover:underline">Dashboard</a>
|
|
<a href="{{ route('condomino.letture-acqua.index') }}" class="text-sm text-blue-700 hover:underline">Letture acqua</a>
|
|
</div>
|
|
|
|
@if (session('success'))
|
|
<div class="mb-4 rounded-lg border border-emerald-300 bg-emerald-50 p-3 text-emerald-700 text-sm">{{ session('success') }}</div>
|
|
@endif
|
|
|
|
@if ($tickets->count() === 0)
|
|
<div class="rounded-lg bg-white p-4 shadow text-sm text-slate-600">Nessun ticket presente.</div>
|
|
@else
|
|
<div class="space-y-3">
|
|
@foreach ($tickets as $ticket)
|
|
<a href="{{ route('condomino.tickets.show', $ticket) }}" class="block rounded-lg bg-white p-4 shadow hover:shadow-md transition">
|
|
<div class="flex items-start justify-between gap-3">
|
|
<div>
|
|
<p class="font-medium">{{ $ticket->titolo }}</p>
|
|
<p class="text-sm text-slate-600 mt-1">{{ $ticket->stabile->denominazione ?? 'Stabile' }} • {{ $ticket->unitaImmobiliare->denominazione ?? 'Unità' }}</p>
|
|
<p class="text-xs text-slate-500 mt-1">{{ optional($ticket->created_at)->format('d/m/Y H:i') }}</p>
|
|
</div>
|
|
<div class="text-right">
|
|
<span class="inline-flex rounded-full bg-slate-100 px-2 py-1 text-xs">{{ $ticket->stato }}</span>
|
|
<div class="text-xs text-slate-500 mt-1">{{ $ticket->priorita }}</div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="mt-4">{{ $tickets->links() }}</div>
|
|
@endif
|
|
</div>
|
|
</body>
|
|
</html>
|