@if ($with_name ?? false)
    <div class="row">
        <div class="col-12">
            @include('components.form.input', [
                'name' => $prefix ?? false ? $prefix . '[name]' : 'name',
                'value' => $customer['name'] ?? (old('name') ?? ''),
                'label' => 'Nom',
            ])
        </div>
    </div>
@endif

<div class="row">
    <div class="col-12">
        @include('components.form.input', [
            'name' => $prefix ?? false ? $prefix . '[address]' : 'address',
            'value' => $customer['address'] ?? (old('address') ?? ''),
            'label' => $label ?? '',
            'required' => $required ?? false,
        ])
    </div>
</div>

<div class="row">
    <div class="col-12">
        @include('components.form.input', [
            'name' => $prefix ?? false ? $prefix . '[address2]' : 'address2',
            'value' => $customer['address2'] ?? (old('address2') ?? ''),
            'label' => 'Complément d\'adresse',
            'required' => false,
        ])
    </div>
</div>

<div class="row">
    <div class="col-4">
        @include('components.form.input', [
            'name' => $prefix ?? false ? $prefix . '[zipcode]' : 'zipcode',
            'value' => $customer['zipcode'] ?? (old('zipcode') ?? ''),
            'label' => 'Code postal',
            'required' => $required ?? false,
        ])
    </div>
    <div class="col-8">
        @include('components.form.input', [
            'name' => $prefix ?? false ? $prefix . '[city]' : 'city',
            'value' => $customer['city'] ?? (old('city') ?? ''),
            'label' => 'Ville',
            'required' => $required ?? false,
        ])
    </div>
</div>
