<?php
    $bien = $bien ?? null;
?>

<div class="space-y-4">
    <div>
        <label for="nom" class="block text-sm font-medium text-slate-700">Nom du bien</label>
        <input type="text" name="nom" id="nom" required value="<?php echo e(old('nom', $bien?->nom)); ?>"
            class="mt-1 w-full rounded-lg border border-slate-300 px-3 py-2 text-sm shadow-sm focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500">
    </div>
    <div>
        <label for="image" class="block text-sm font-medium text-slate-700">Image <?php if($bien): ?>(laisser vide pour conserver l’actuelle) <?php endif; ?></label>
        <input type="file" name="image" id="image" accept="image/*" <?php if(!$bien): ?> required <?php endif; ?>
            class="mt-1 w-full text-sm text-slate-600 file:mr-3 file:rounded-lg file:border-0 file:bg-sky-50 file:px-3 file:py-2 file:text-sm file:font-medium file:text-sky-800 hover:file:bg-sky-100">
    </div>
    <div>
        <label for="lieu" class="block text-sm font-medium text-slate-700">Lieu</label>
        <input type="text" name="lieu" id="lieu" required value="<?php echo e(old('lieu', $bien?->lieu)); ?>"
            class="mt-1 w-full rounded-lg border border-slate-300 px-3 py-2 text-sm shadow-sm focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500">
    </div>
    <div>
        <label for="superficie" class="block text-sm font-medium text-slate-700">Superficie (m²)</label>
        <input type="number" name="superficie" id="superficie" step="0.01" min="0" required value="<?php echo e(old('superficie', $bien?->superficie)); ?>"
            class="mt-1 w-full rounded-lg border border-slate-300 px-3 py-2 text-sm shadow-sm focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500">
    </div>
    <div>
        <label for="telephone" class="block text-sm font-medium text-slate-700">Numéro de téléphone</label>
        <input type="text" name="telephone" id="telephone" required value="<?php echo e(old('telephone', $bien?->telephone)); ?>"
            class="mt-1 w-full rounded-lg border border-slate-300 px-3 py-2 text-sm shadow-sm focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500">
    </div>
    <div>
        <label for="prix" class="block text-sm font-medium text-slate-700">Prix (F CFA, optionnel)</label>
        <input type="number" name="prix" id="prix" step="1" min="0" value="<?php echo e(old('prix', $bien?->prix)); ?>"
            class="mt-1 w-full rounded-lg border border-slate-300 px-3 py-2 text-sm shadow-sm focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500">
        <p class="mt-1 text-xs text-slate-500">Laisser vide pour afficher « Prix sur demande » sur le site.</p>
    </div>
</div>
<?php /**PATH C:\Softsys\akaba_immobilier\resources\views/admin/biens/_form.blade.php ENDPATH**/ ?>