<?php $__env->startSection('content'); ?>

<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <?php if($message = Session::get('success')): ?>
                <div class="alert alert-success alert-dismissible">
                    <button type="button" class="close" data-dismiss="alert">×</button>  
                    <small><?php echo e($message); ?></small>
                </div>
            <?php endif; ?>
        </div>
        
        <div class="col-md-12">
            <div class="card strpied-tabled-with-hover">
                <div class="card-header ">
                    <h4 class="card-title">Biens immobiliers</h4>
                    <p class="card-category">Liste des biens immobiliers</p>
                </div>
                <div class="card-body table-full-width table-responsive">
                    <table class="table table-hover table-striped text-capitalize">
                        <thead>
                            <th>ID</th>
                            <th>Reference</th>
                            <th>Numéro de lot</th>
                            <th>Régime juridique</th>
                            <th>Type de bien</th>
                            <th></th>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $biens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bien): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($bien->id); ?></td>
                                <td><?php echo e($bien->reference); ?></td>
                                <td><?php echo e($bien->num_lot); ?></td>
                                <td style="text-transform: capitalize"><?php echo e($bien->regime_juridique); ?></td>
                                <td><?php echo e($bien->type()); ?></td>
                                <td>
                                    <a href="<?php echo e(route('bien.edit',$bien->id)); ?>" class="btn btn-primary btn-sm">Détails</a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        
        <div class="col-md-12">
            <div class="card strpied-tabled-with-hover">
                <div class="card-header ">
                    <h4 class="card-title">Propriétaires</h4>
                    <p class="card-category">Liste des propriétaires</p>
                </div>
                <div class="card-body table-full-width table-responsive">
                    <table class="table table-hover table-striped" style="text-transform: capitalize">
                        <thead>
                            <th>ID</th>
                            <th>Numéro</th>
                            <th>Nom</th>
                            <th>Ville</th>
                            <th>Code postal</th>
                            <th></th>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $proprietaires; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $proprietaire): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($proprietaire->id); ?></td>
                                <td><?php echo e($proprietaire->pro_num); ?></td>
                                <td><?php echo e($proprietaire->civilite()); ?> <?php echo e($proprietaire->nom); ?> <?php echo e($proprietaire->prenom); ?></td>
                                <td><?php echo e($proprietaire->ville); ?></td>
                                <td><?php echo e($proprietaire->cp); ?></td>
                                <td>
                                    <a href="<?php echo e(route('proprietaire.edit',$proprietaire->id)); ?>" class="btn btn-primary btn-sm">Détails</a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        
        <div class="col-md-12">
            <div class="card strpied-tabled-with-hover">
                <div class="card-header ">
                    <h4 class="card-title">Mandats de location</h4>
                    <p class="card-category">Liste des mandats de location</p>
                </div>
                <div class="card-body table-full-width table-responsive">
                    <table class="table table-hover table-striped" style="text-transform: capitalize">
                        <thead>
                            <th>ID</th>
                            <th>Numéro de mandat</th>
                            <th>Type de mandat</th>
                            <th>Référence du bien</th>
                            <th></th>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $location): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($location->id); ?></td>
                                <td><?php echo e($location->num_mandat); ?></td>
                                <td><?php echo e($location->type_mandat); ?></td>
                                <td><?php echo e($location->bien->reference); ?></td>
                                <td>
                                    <a href="<?php echo e(route('location.edit',$location->id)); ?>" class="btn btn-primary btn-sm">Détails</a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        
        <div class="col-md-12">
            <div class="card strpied-tabled-with-hover">
                <div class="card-header ">
                    <h4 class="card-title">Mandats de vente</h4>
                    <p class="card-category">Liste des mandats de vente</p>
                </div>
                <div class="card-body table-full-width table-responsive">
                    <table class="table table-hover table-striped" style="text-transform: capitalize">
                        <thead>
                            <th>ID</th>
                            <th>Numéro de mandat</th>
                            <th>Type de mandat</th>
                            <th>Référence du bien</th>
                            <th></th>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $ventes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vente): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($vente->id); ?></td>
                                <td><?php echo e($vente->num_mandat); ?></td>
                                <td><?php echo e($vente->type_mandat); ?></td>
                                <td><?php echo e($vente->bien->reference); ?></td>
                                <td>
                                    <a href="<?php echo e(route('vente.edit',$vente->id)); ?>" class="btn btn-primary btn-sm">Détails</a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </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/home.blade.php ENDPATH**/ ?>