<?php $__env->startSection('content'); ?>
<div class="container mt-4">
    <div class="container">
        <h2 class="display-4">Resultado da Busca</h2>
        <div class="row mb-4 ml-1">
            <div class="card mr-4"><div class="card-header alert-primary">Total de Leads: </div><div class="card-body"> <?php echo count($leads) ?></div></div>
            <div class="card mr-4"><div class="card-header alert-primary">Consultor: </div><div class="card-body"> <?php echo e($consultor ?? "Todos"); ?></div></div>
            <div class="card mr-4"><div class="card-header alert-primary">Status: </div><div class="card-body"> <?php echo e($status ?? "Todos"); ?></div></div>
            <div class="card mr-4"><div class="card-header alert-primary">Marca: </div><div class="card-body"> <?php echo e($marca ?? "Todas"); ?></div></div>
            <div class="card mr-4"><div class="card-header alert-primary">Período: </div><div class="card-body"> <?php echo e($periodo ?? "Todos"); ?></div></div>

          </div>
        <a class="btn btn-secondary mb-4" href="javascript: history.go(-1);"><i class="fas fa-arrow-left"></i> Voltar</a>
        <hr>
        <table id="table_id" class="display">
            <thead>
                <tr>
                    <th>Nome</th>
                    <th>Consultor</th>
                    <th>Marca</th>
                    <th>Status</th>
                    <th>Data / Horário</th>
                    <th>Visualizar</th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $leads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($lead->nome); ?></td>
                    <td><?php echo e($lead->consultor); ?></td>
                    <td><?php echo e($lead->marca); ?></td>
                    <td><?php echo e($lead->status); ?></td>
                    <td><?php echo e($lead->created_at); ?></td>
                    <td><a class='btn btn-outline-info' href='leads/<?php echo e($lead->lead_id); ?>/edit'><i class='far fa-eye' aria-hidden='true'></i></a></td>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vendascnvw/public_html/propostas/resources/views/result.blade.php ENDPATH**/ ?>