@php $modalId = $modalId ?? 'modal-new-supplier'; @endphp
@php $inputClass = 'w-full px-3 py-2.5 text-sm border border-gray-200 rounded-lg bg-white focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors'; @endphp
<form class="space-y-6" onsubmit="return false;">
    <div class="grid grid-cols-1 sm:grid-cols-2 gap-5">
        <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Nom <span class="text-red-500">*</span></label>
            <input type="text" name="name" class="{{ $inputClass }}" placeholder="Nom du fournisseur" @error('name') border-red-500 @enderror value="{{ old('name') }}">
            @error('name')
            <p class="mt-1 text-sm text-red-600">{{ $message }}</p>
            @enderror
        </div>
        <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Addresse</label>
            <input type="text" name="address" class="{{ $inputClass }}" placeholder="Lieu exacte de l'entreprise" @error('address') border-red-500 @enderror value="{{ old('address') }}">
            @error('address')
            <p class="mt-1 text-sm text-red-600">{{ $message }}</p>
            @enderror
        </div>
    </div>
    <div class="grid grid-cols-1 sm:grid-cols-2 gap-5">
        <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Email</label>
            <input type="email" name="email" class="{{ $inputClass }}" placeholder="email@exemple.com" @error('email') border-red-500 @enderror value="{{ old('email') }}">
            @error('email')
            <p class="mt-1 text-sm text-red-600">{{ $message }}</p>
            @enderror
        </div>
        <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Téléphone</label>
            <input type="tel" name="phone" class="{{ $inputClass }}" placeholder="+33 ..." @error('phone') border-red-500 @enderror value="{{ old('phone') }}">
            @error('phone')
            <p class="mt-1 text-sm text-red-600">{{ $message }}</p>
            @enderror
        </div>
    </div>
    @include('components.modals.modal-actions', ['modalId' => $modalId])
</form>
