@php $modalId = $modalId ?? 'modal-new-equipment'; @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 de l'équipement <span class="text-red-500">*</span></label>
            <input type="text" class="{{ $inputClass }}" placeholder="Nom de l'équipement">
        </div>
        <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Numéro de série</label>
            <input type="text" class="{{ $inputClass }}" placeholder="Optionnel">
        </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">Département</label>
            <select class="{{ $inputClass }}">
                <option>Choisir un département</option>
                @foreach ($departments as $department)
                <option value="{{ $department->id }}">{{ $department->name }}</option>
                @endforeach
            </select>
        </div>
        <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Statut</label>
            <select class="{{ $inputClass }}">
                <option>En service</option>
                <option>En maintenance</option>
                <option>Hors service</option>
            </select>
        </div>
    </div>
    <div>
        <label class="block text-sm font-medium text-gray-700 mb-2">Date d'acquisition</label>
        <input type="date" class="{{ $inputClass }}">
    </div>
    @include('components.modals.modal-actions', ['modalId' => $modalId])
</form>
