
<?php $__env->startSection('contentSection'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    <div class="pull-left"><i class="fa fa-table"></i> Requirements (<span
                            id="module_total_count"></span>)
                    </div>
                    <div class="pull-right">
                        <button type="button" data-toggle="modal" data-target="#addLeadModal"
                                class="btn btn-primary"><i
                                class="fa fa-plus"></i> Add New
                        </button>
                        
                        
                        
                        
                    </div>
                </div>
                <div class="card-header">
                    <div class="row">
                        <div class="col-md-3 form-group">
                            <i class="fa fa-filter"></i> Filters
                        </div>
                    </div>
                    <form id="leadSearchFrom">
                        <div class="row">
                            <div class="col-md-3 form-group">
                                <label class="control-label">Community</label>
                                <select data-live-search="true" name="district_search" id="district_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Community</option>
                                    <?php $__currentLoopData = App\Models\Attribute::whereType('district')->orderBy('name')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>"><?php echo e($attr->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-md-3 form-group">
                                <label class="control-label">Project</label>
                                <select data-live-search="true" name="project_search" id="project_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Project</option>
                                </select>
                            </div>
                            <div class="col-md-3 form-group">
                                <label class="control-label">Purpose</label>
                                <select data-live-search="true" name="purpose_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Purpose</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'purpose')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>">
                                            <?php echo e($attr->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-md-3 form-group">
                                <label class="control-label">Property Type</label>
                                <select data-live-search="true" name="property_type_search" id="property_type_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Property Type</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->with('parent')->where('type', 'propertyType')->whereNotNull('parent_id')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>">
                                            <?php echo e($attr->parent ? $attr->name . ' (' . $attr->parent->name . ')' : $attr->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-md-3 form-group">
                                <label class="control-label">Status</label>
                                <select data-live-search="true" name="lead_status_search" id="lead_status_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Lead Status</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'leadStatus')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>">
                                            <?php echo e($attr->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="col-md-3 form-group">
                                <label class="control-label">Source</label>
                                <select data-live-search="true" name="lead_source_search" id="lead_source_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Source</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'leadSource')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>">
                                            <?php echo e($attr->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-md-12 text-right">
                                <button class="btn btn-primary">Search</button>
                                <button type="reset" id="leadSearchFormReset" class="btn btn-primary">Reset</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="leadsListTable" class="table table-bordered" style="width: 100%"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('pageSpecificScripts'); ?>
    <?php echo $__env->make('admin.requirements.requirementsListTemplate', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.requirements.requirementListingsListTemplate', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.requirements.modals.addRequirementModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.requirements.modals.editRequirementModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.requirements.modals.requirementListingsModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <script src="<?php echo e(asset('back_assets/assets/plugins/summernote/dist/summernote-bs4.min.js')); ?>"></script>
    <script src="<?php echo e(asset('back_assets/assets/plugins/bootstrap-datatable/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('back_assets/assets/plugins/bootstrap-datatable/js/dataTables.bootstrap4.min.js')); ?>"></script>
    <script src="<?php echo e(asset('back_assets/assets/plugins/bootstrap-select/js/bootstrap-select.min.js')); ?>"></script>
    <script type="text/javascript" src="<?php echo e(asset('assets/js/ajax-bs.js')); ?>"></script>
    <script src="<?php echo e(asset('back_assets/assets/js/app/requirementsScript.js')); ?>?<?php echo e(app_version()); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xampp\htdocs\propco\resources\views/admin/requirements/requirements.blade.php ENDPATH**/ ?>