@if ($errors->registration->any())
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->registration->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif

<div class="row">
    <div class="col-6">
        @include('components.form.input', [
            'name' => 'first_name',
            'value' => $customer['first_name'] ?? (old('first_name') ?? ''),
            'label' => 'Prénom',
            'required' => true,
        ])
    </div>
    <div class="col-6">
        @include('components.form.input', [
            'name' => 'last_name',
            'value' => $customer['last_name'] ?? (old('last_name') ?? ''),
            'label' => 'Nom',
            'required' => true,
        ])
    </div>
</div>
<div class="row">
    <div class="col-6">
        @include('components.form.input', [
            'name' => 'company',
            'value' => $customer['company'] ?? (old('company') ?? ''),
            'label' => 'Société',
        ])
    </div>
    <div class="col-6">
        @include('components.form.input', [
            'name' => 'tva',
            'value' => $customer['tva'] ?? (old('tva') ?? ''),
            'label' => 'N° de TVA',
        ])
    </div>
</div>
<div class="row">
    <div class="col-6">
        @include('components.form.input', [
            'name' => 'email',
            'value' => $customer['email'] ?? (old('email') ?? ''),
            'label' => 'Email',
            'required' => true,
        ])
        {!! $errors->registration->first('email', '<p class="text-danger"><strong>:message</strong></p>') !!}
    </div>
    <div class="col-6">
        @include('components.form.input', [
            'name' => 'phone',
            'value' => $customer['phone'] ?? (old('phone') ?? ''),
            'label' => 'Téléphone',
            'required' => true,
        ])
    </div>
</div>

@include('Shop.Customers.partials.address', ['label' => 'Adresse', 'required' => true])
