<div class="switch-pipeline-container">
    <div class="form-group">
        <?php
            $pipelineRepository = app('Webkul\Lead\Repositories\PipelineRepository');

            if (! $pipelineId = request('pipeline_id')) {
                $pipelineId = $pipelineRepository->getDefaultPipeline()->id;
            }
        ?>

        <select class="control" onchange="window.location.href = this.value">
            <?php $__currentLoopData = app('Webkul\Lead\Repositories\PipelineRepository')->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pipeline): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    if ($viewType = request('view_type')) {
                        $url = route('admin.leads.index', [
                            'pipeline_id' => $pipeline->id,
                            'view_type'   => $viewType
                        ]);
                    } else {
                        $url = route('admin.leads.index', ['pipeline_id' => $pipeline->id]);
                    }
                ?>

                <option value="<?php echo e($url); ?>" <?php echo e($pipelineId == $pipeline->id ? 'selected' : ''); ?>>
                    <?php echo e($pipeline->name); ?>

                </option> 
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>

<div class="switch-view-container">
    <?php if(request('view_type')): ?>
        <a href="<?php echo e(route('admin.leads.index')); ?>" class="icon-container">
            <i class="icon layout-column-line-icon"></i>
        </a>

        <a class="icon-container active">
            <i class="icon table-line-active-icon"></i>
        </a>
    <?php else: ?>
        <a  class="icon-container active">
            <i class="icon layout-column-line-active-icon"></i>
        </a>

        <a href="<?php echo e(route('admin.leads.index', ['view_type' => 'table'])); ?>" class="icon-container">
            <i class="icon table-line-icon"></i>
        </a>
    <?php endif; ?>
</div><?php /**PATH /home/quikappspane/public_html/cmr.quik-apps.com.co/laravel-crm/packages/Webkul/Admin/src/Providers/../Resources/views/leads/index/view-swither.blade.php ENDPATH**/ ?>