<?php $__env->startSection('title', 'Demander un devis'); ?>

<?php $__env->startSection('content'); ?>
<?php echo $__env->make('components.page-banner', [
'title' => 'Demander un devis',

'image' => asset('img/test_7.jpg')
], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<section class="py-20 bg-white">
    <div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
        <?php if(session('success')): ?>
        <div class="mb-8 p-4 rounded-lg bg-green-50 border border-green-200 text-green-800">
            <?php echo e(session('success')); ?>

        </div>
        <?php endif; ?>

        <?php if($errors->any()): ?>
        <div class="mb-8 p-4 rounded-lg bg-red-50 border border-red-200 text-red-800">
            <ul class="list-disc list-inside">
                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
        </div>
        <?php endif; ?>

        <form action="<?php echo e(route('devis.store')); ?>" method="POST" class="space-y-6">
            <?php echo csrf_field(); ?>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <div>
                    <label for="nom" class="block text-sm font-medium text-slate-700 mb-2">Nom complet *</label>
                    <input type="text" name="nom" id="nom" value="<?php echo e(old('nom')); ?>" required class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
                </div>
                <div>
                    <label for="email" class="block text-sm font-medium text-slate-700 mb-2">Email *</label>
                    <input type="email" name="email" id="email" value="<?php echo e(old('email')); ?>" required class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
                </div>
            </div>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <div>
                    <label for="telephone" class="block text-sm font-medium text-slate-700 mb-2">Téléphone</label>
                    <input type="tel" name="telephone" id="telephone" value="<?php echo e(old('telephone')); ?>" class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
                </div>
                <div>
                    <label for="entreprise" class="block text-sm font-medium text-slate-700 mb-2">Entreprise</label>
                    <input type="text" name="entreprise" id="entreprise" value="<?php echo e(old('entreprise')); ?>" class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
                </div>
            </div>
            <div>
                <label for="type_prestation" class="block text-sm font-medium text-slate-700 mb-2">Type de prestation</label>
                <select name="type_prestation" id="type_prestation" class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
                    <option value="">Sélectionnez...</option>
                    <option value="Maintenance matériel industriel" <?php echo e(old('type_prestation') == 'Maintenance matériel industriel' ? 'selected' : ''); ?>>Maintenance matériel industriel</option>
                    <option value="Éclairage public" <?php echo e(old('type_prestation') == 'Éclairage public' ? 'selected' : ''); ?>>Éclairage public</option>
                    <option value="Ouvrage bâtiment" <?php echo e(old('type_prestation') == 'Ouvrage bâtiment' ? 'selected' : ''); ?>>Ouvrage bâtiment</option>
                    <option value="Addition eau potable" <?php echo e(old('type_prestation') == 'Addition eau potable' ? 'selected' : ''); ?>>Addition eau potable</option>
                    <option value="Froid industriel/domestique" <?php echo e(old('type_prestation') == 'Froid industriel/domestique' ? 'selected' : ''); ?>>Froid industriel/domestique</option>
                    <option value="Mécanique électricité HTA BTA EP" <?php echo e(old('type_prestation') == 'Mécanique électricité HTA BTA EP' ? 'selected' : ''); ?>>Mécanique électricité (HTA BTA EP)</option>
                    <option value="Climatisation" <?php echo e(old('type_prestation') == 'Climatisation' ? 'selected' : ''); ?>>Climatisation</option>
                    <option value="Maintenance chaudières" <?php echo e(old('type_prestation') == 'Maintenance chaudières' ? 'selected' : ''); ?>>Maintenance chaudières</option>
                    <option value="Maintenance compresseur air" <?php echo e(old('type_prestation') == 'Maintenance compresseur air' ? 'selected' : ''); ?>>Maintenance compresseur air</option>
                    <option value="Maintenance compresseur froid" <?php echo e(old('type_prestation') == 'Maintenance compresseur froid' ? 'selected' : ''); ?>>Maintenance compresseur froid</option>
                    <option value="Groupes électrogènes" <?php echo e(old('type_prestation') == 'Groupes électrogènes' ? 'selected' : ''); ?>>Groupes électrogènes</option>
                    <option value="Autre" <?php echo e(old('type_prestation') == 'Autre' ? 'selected' : ''); ?>>Autre</option>
                </select>
            </div>
            <div>
                <label for="description" class="block text-sm font-medium text-slate-700 mb-2">Description du projet *</label>
                <textarea name="description" id="description" rows="6" required class="w-full px-4 py-3 rounded-lg border border-slate-200 focus:ring-2 focus:ring-amber-500 focus:border-amber-500" placeholder="Décrivez votre projet en détail : nature des travaux, localisation, délais souhaités..."><?php echo e(old('description')); ?></textarea>
            </div>
            <button type="submit" class="w-full bg-amber-500 hover:bg-amber-600 text-white py-4 rounded-lg font-semibold text-lg transition">
                Envoyer ma demande de devis
            </button>
        </form>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Softsys\emelec_2\resources\views/pages/devis.blade.php ENDPATH**/ ?>