++ fix permessi e mobile portrait

This commit is contained in:
Francesco Picone
2026-07-25 23:48:56 +02:00
parent 34415862d2
commit 69072b6f09
17 changed files with 194 additions and 56 deletions

View File

@@ -42,7 +42,7 @@
{{-- Table --}}
<div class="bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200 text-sm table-striped">
<table class="min-w-full divide-y divide-gray-200 text-sm table-striped table-cards">
<thead style="background:linear-gradient(180deg,#f9fafb,#f3f4f6)">
<tr>
<th wire:click="sortBy('territorio_numero')" class="px-3 py-3 text-left text-xs font-semibold text-gray-600 uppercase cursor-pointer">
@@ -67,7 +67,7 @@
@forelse($assegnazioni as $a)
<tr class="hover:bg-indigo-50/30 transition-colors">
@php($temporaryPdfUrl = !$a->returned_at ? $a->shortPdfUrl() : null)
<td class="px-3 py-2">
<td data-label="Territorio" class="px-3 py-2">
<div class="flex items-center gap-2">
@if($a->territorio?->thumbnail_path)
<img src="{{ asset('storage/' . $a->territorio->thumbnail_path) }}"
@@ -80,18 +80,18 @@
</div>
</div>
</td>
<td class="px-3 py-2">{{ $a->proclamatore?->nome_completo ?? 'N/A' }}</td>
<td class="px-3 py-2">{{ $a->assigned_at->format('d/m/Y') }}</td>
<td class="px-3 py-2">
<td data-label="Proclamatore" class="px-3 py-2">{{ $a->proclamatore?->nome_completo ?? 'N/A' }}</td>
<td data-label="Assegnato" class="px-3 py-2">{{ $a->assigned_at->format('d/m/Y') }}</td>
<td data-label="Rientrato" class="px-3 py-2">
@if($a->returned_at)
{{ $a->returned_at->format('d/m/Y') }}
@else
<span class="text-amber-600 font-medium text-xs">In corso</span>
@endif
</td>
<td class="px-3 py-2">{{ $a->giorni }}</td>
<td class="px-3 py-2 text-xs text-gray-500">{{ $a->annoTeocratico?->label }}</td>
<td class="px-3 py-2 text-xs">
<td data-label="Giorni" class="px-3 py-2">{{ $a->giorni }}</td>
<td data-label="Anno" class="px-3 py-2 text-xs text-gray-500">{{ $a->annoTeocratico?->label }}</td>
<td data-label="Campagna" class="px-3 py-2 text-xs">
@if($a->counted_in_campaign)
<span class="text-green-600">{{ $a->campagna?->descrizione }}</span>
@else
@@ -99,8 +99,8 @@
@endif
</td>
@can('settings.manage')
<td class="px-3 py-2 whitespace-nowrap">
<div class="flex items-center gap-1">
<td class="px-3 py-2 whitespace-nowrap cell-actions">
<div class="flex items-center gap-1 flex-wrap">
@if($temporaryPdfUrl)
<a href="{{ $temporaryPdfUrl }}"
target="_blank"