@extends('layouts.admin') @section('title', 'Client — ' . $client->name) @section('page_title', 'Fiche client') @section('content')
Informations
{{ strtoupper(substr($client->name, 0, 2)) }}
{{ $client->name }}
{{ $client->email }}
{{ $client->is_active ? 'Actif' : 'Inactif' }}
@foreach([ ['fas fa-building','Entreprise', $client->company ?? '—'], ['fas fa-phone','Téléphone', $client->phone ?? '—'], ['fas fa-calendar','Inscrit le', \Carbon\Carbon::parse($client->created_at)->format('d/m/Y')], ['fas fa-clock','Dernière connexion', $client->last_login_at ? \Carbon\Carbon::parse($client->last_login_at)->diffForHumans() : 'Jamais'], ] as [$icon, $label, $value])
{{ $label }}
{{ $value }}
@endforeach
@csrf
@csrf @method('DELETE')
Devis ({{ $devis->count() }})
@if($devis->count())
@foreach($devis as $d) @endforeach
RefProduitQuantitéDateStatut
#{{ str_pad($d->id, 4, '0', STR_PAD_LEFT) }} {{ $d->product ?? '—' }} {{ $d->quantity ?? '—' }} {{ \Carbon\Carbon::parse($d->created_at)->format('d/m/Y') }} @php $s = $d->status; @endphp {{ ucfirst($s) }}
@else

Aucun devis soumis

@endif
@endsection