@extends('layouts.app') @section('title', 'Clienti') @section('page-title', 'Gestione Clienti') @section('page-actions') Nuovo Cliente @endsection @section('content') {{-- ═══ Barra filtri ════════════════════════════════════════════════════ --}}
{{-- method="GET": i filtri vengono messi nell'URL (?search=...&type=...) --}}
{{-- ═══ Tabella clienti ════════════════════════════════════════════════ --}}
{{ $customers->total() }} {{ Str::plural('cliente', $customers->total()) }} trovati
@forelse ($customers as $customer) @empty @endforelse
Cliente Contatto Città Tipo Stato Contratto Azioni
{{ $customer->name }}
@if ($customer->vat_number)
P.IVA: {{ $customer->vat_number }}
@endif
{{ $customer->email }}
@if ($customer->phone)
{{ $customer->phone }}
@endif
{{ $customer->city ?? '—' }} {{ $customer->type_label }} {{ ucfirst($customer->status) }} {{ $appSettings['currency_symbol'] }}{{ number_format($customer->contract_value, 0, ',', '.') }}
{{-- Form DELETE: i browser non supportano DELETE nativo, Laravel usa il campo _method come workaround --}}
@csrf @method('DELETE')
Nessun cliente trovato.
Aggiungi il primo cliente
{{-- Paginazione: generata automaticamente da Laravel --}} @if ($customers->hasPages()) @endif
@endsection