

<?php $__env->startSection('content'); ?>
    
<div class="container-fluid">
    <div class="row">
        <div class="col">
            <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                    <ul>
                        <?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; ?>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="card" id="formEntreprise">
                <div class="card-header">
                    <h4 class="card-title">Informations du mandat de vente</h4>
                </div>
                <div class="card-body">
                    <form method="POST" action="<?php echo e(route('vente.store',$bienId)); ?>">
                        <?php echo csrf_field(); ?>

                        
                        <input type="text" name="bien_id" hidden value="<?php echo e($bienId); ?>">

                        <div class="row mb-4 mt-4">
                            <div class="col-4 mt-auto">
                                <div class="form-group">
                                    <label for="prix">Prix de vente du bien (Honoraires Agence Inclus) (€)</label>
                                    <input required type="number" step="0.01" name="prix" class="form-control" value="0">
                                </div>
                            </div>
                            <div class="col-4 mt-auto">
                                <div class="form-group">
                                    <label for="honoraires">Montant d’honoraires agence (€)</label>
                                    <input required type="number" step="0.01" name="honoraires" class="form-control" value="0">
                                </div>
                            </div>
                            <div class="col-4 mt-auto">
                                <div class="form-group">
                                    <label for="type_mandat">Type du mandat</label>
                                    <select required name="type_mandat" class="form-control">
                                        <option value="S">Mandat simple</option>
                                        <option value="E">Mandat exclusif</option>
                                        <option value="P">Mandate priviliégié</option>
                                    </select>
                                </div>
                            </div>
                            
                        </div>

                        <div class="row mb-4">
                            <div class="col-4 mt-auto">
                                <label for="num_mandat">Numéro de référence du mandat tel qu’inscrit sur le mandat de vente (papier)</label>
                                <input required type="text" name="num_mandat" class="form-control">
                            </div>
                            <div class="col-4 mt-auto">
                                <label for="date_mandat">Date du mandat</label>
                                <input required type="date" name="date_mandat" class="form-control">
                            </div>
                            <div class="col-4 mt-auto">
                                <label for="passe_sous_compromis">Sous compromis de vente</label>
                                <select required name="passe_sous_compromis" class="form-control">
                                    <option value="0">Non</option>
                                    <option value="1">Oui</option>
                                </select>
                            </div>
                        </div>

                        <div class="row mb-4">
                            <div class="col-4 mt-auto">
                                <label for="charges_honoraires">A qui revient la charge des honoraires</label>
                                <select required name="charges_honoraires" class="form-control">
                                    <option value="0">Vendeur</option>
                                    <option value="1">Acquéreur</option>
                                    <option value="2">Partagé</option>
                                </select>
                            </div>
                            <div class="col-4 mt-auto">
                                <label for="copro_quote_part">Quote-part budget prévisionnel dépenses courantes charge du vendeur (€/an)</label>
                                <input required type="number" step="0.01" name="copro_quote_part" class="form-control" value="0">
                            </div>
                            <div class="col-4 mt-auto">
                                <label for="copro_nombre_lots">Nombre de lots de la copropriété (incluant les lots secondaires)</label>
                                <input type="number" name="copro_nombre_lots" class="form-control" value="0">
                            </div>
                        </div>

                        <button type="submit" class="btn btn-info btn-fill pull-right">Etape suivante</button>
                        <div class="clearfix"></div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Lucie Kalam Conseil\KALAM CONSEIL\laravel\OBimmo\obimmo\resources\views/ventes/create.blade.php ENDPATH**/ ?>