{{-- resources/views/dashboard.blade.php — Dashboard principale @extends indica da quale layout "ereditare" la struttura HTML. @section riempie le sezioni definite con @yield nel layout. --}} @extends('layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('page-actions') Nuovo Cliente @endsection @section('content') {{-- Messaggio di benvenuto --}} @if ($welcomeMessage)
| Cliente | Tipo | Stato | Aggiunto | |
|---|---|---|---|---|
|
{{ $customer->name }}
{{ $customer->email }}
|
{{ $customer->type_label }} | {{-- badge_color è l'accessor definito nel Model --}} {{ ucfirst($customer->status) }} | {{-- diffForHumans(): "2 giorni fa", "stamattina", ecc. --}} {{ $customer->created_at->diffForHumans() }} | |
| Nessun cliente ancora. Aggiungine uno! | ||||
Nessun dato disponibile
@endforelse