<?php $__env->startSection('title',Request::is('query*') ? 'Queries' : 'Leads' ); ?>

<?php $__env->startSection('content'); ?>
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h3><?php echo e(Request::is('query*') ? 'Queries' : 'Leads'); ?></h3>
                </div>
                <div class="col-sm-6">
                    
                    <?php if(Request::is('leads*')): ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('lead_create')): ?>
                    <a class="btn btn-primary float-right show-modal" style="float:right;"
                       href="javascript:void(0);" data-title="Add New" data-size="lg" data-action="<?php echo e(route('leads.create',['request'=>Request::is('query*') ? 'q' : 'l'])); ?>">
                        Add New
                    </a>
                    <?php endif; ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('lead_import')): ?>
                    <a class="btn btn-success float-right show-modal" style="float:right;margin-right:10px;"
                       href="javascript:void(0);" data-title="Import Leads" data-size="sm" data-action="<?php echo e(route('import-leads',['request'=>Request::is('query*') ? 'q' : 'l'])); ?>">
                        <i class="ti ti-cloud-upload me-2 ti-sm"></i>
                        <span class="align-middle">Import Leads</span> 
                    </a>
                    <?php endif; ?>
                    <?php endif; ?>
                    <?php if(Request::is('query*')): ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('query_create')): ?>
                    <a class="btn btn-primary float-right show-modal" style="float:right;"
                       href="javascript:void(0);" data-title="Add New" data-size="lg" data-action="<?php echo e(route('leads.create',['request'=>Request::is('query*') ? 'q' : 'l'])); ?>">
                        Add New
                    </a>
                    <?php endif; ?>
                    <a class="btn btn-info float-right show-modal" style="float:right;margin-right:10px;"
                       href="javascript:void(0);" data-title="Fetch Leads" data-size="lg" data-table="1" data-action="<?php echo e(route('fetch-leads')); ?>">
                        Fetch Leads
                    </a>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </section>

    <div class="content px-3">

        <?php echo $__env->make('flash::message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        <div class="clearfix"></div>

        <div class="card">
            <?php echo $__env->make('leads.table', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\projects\maksoft\saadahsan\resources\views/leads/index.blade.php ENDPATH**/ ?>