@props(['client' => null, 'action', 'method' => 'POST', 'submitText' => 'Créer le client', 'cancelUrl', 'redirectTo' => 'index', 'tags' => []]) @php $isEdit = $client !== null; $phoneValue = old('phone', $client?->phone ?? ''); if ($phoneValue && strlen($phoneValue) === 8) { $phoneValue = substr($phoneValue, 0, 2) . ' ' . substr($phoneValue, 2, 3) . ' ' . substr($phoneValue, 5, 3); } $checkDuplicateUrl = route('provider.api.clients.check-duplicate'); $clientUuid = $client?->uuid ?? ''; @endphp
Un ou plusieurs clients avec un nom similaire existent déjà :
Voulez-vous créer ce client quand même ?