netgescon-day0/resources/views/filament/modals/prima-nota-movimenti.blade.php

33 lines
1.7 KiB
PHP

<div class="space-y-4">
<div class="text-sm text-gray-600">
<div><strong>Data:</strong> {{ $record->data_registrazione?->format('d/m/Y') ?? '—' }}</div>
<div><strong>Descrizione:</strong> {{ $record->description ?? $record->descrizione ?? $record->notes ?? '—' }}</div>
<div><strong>Protocollo:</strong> {{ $record->protocollo_completo ?? '—' }}</div>
</div>
<div class="overflow-hidden rounded-lg border border-gray-200 dark:border-gray-800">
<table class="min-w-full divide-y divide-gray-200 text-sm dark:divide-gray-800">
<thead class="bg-gray-50 dark:bg-gray-900">
<tr>
<th class="px-3 py-2 text-left font-semibold text-gray-700 dark:text-gray-200">Tipo</th>
<th class="px-3 py-2 text-left font-semibold text-gray-700 dark:text-gray-200">Conto</th>
<th class="px-3 py-2 text-right font-semibold text-gray-700 dark:text-gray-200">Importo</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 dark:divide-gray-800">
@forelse($movimenti as $m)
<tr>
<td class="px-3 py-2 uppercase">{{ $m['tipo'] ?? '—' }}</td>
<td class="px-3 py-2">{{ $m['conto_label'] ?? '—' }}</td>
<td class="px-3 py-2 text-right"> {{ number_format((float) ($m['importo'] ?? 0), 2, ',', '.') }}</td>
</tr>
@empty
<tr>
<td colspan="3" class="px-3 py-4 text-center text-gray-500">Nessun movimento disponibile.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>