
<?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> Contacts (<span
                            id="module_total_count"></span>)
                    </div>
                    <div class="pull-right">
                        <form action="<?php echo e(route('export-contacts')); ?>" method="get">
                            <button style="display: none" id="deleteAllBtn" type="button" class="btn btn-danger"><i
                                    class="fa fa-trash"></i> Delete Selected
                            </button>
                            <button type="button" data-toggle="modal" data-target="#addContactModal"
                                    class="btn btn-primary"><i
                                    class="fa fa-plus"></i> Add New
                            </button>
                            <button type="submit"
                                    class="btn btn-primary"><i
                                    class="fa fa-download"></i> Export Contacts
                            </button>
                        </form>
                    </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="contactSearchFrom">
                        <div class="row">
                            <div class="col-md-4 form-group">
                                <label class="control-label">Type of contact</label>
                                <select name="type_search"
                                        class="form-control">
                                    <option value="">Select type of contact</option>
                                    <option value="1">Individual</option>
                                    <option value="2">Company</option>
                                </select>
                            </div>
                            <div class="col-md-4 form-group">
                                <label class="control-label">Title</label>
                                <select name="title_search"
                                        class="form-control">
                                    <option value="">Select Title</option>
                                    <option value="Mr">Mr</option>
                                    <option value="Ms">Ms</option>
                                    <option value="M/S">M/S</option>
                                </select>
                            </div>
                            <div class="col-md-4 form-group">
                                <label class="control-label">Name</label>
                                <input type="text" maxlength="50" name="name_search" class="form-control">
                            </div>
                            <div class="col-md-4 form-group">
                                <label class="control-label">Address</label>
                                <input type="text" maxlength="100" name="address_search" class="form-control">
                            </div>
                            <div class="col-md-4 form-group">
                                <label class="control-label">Gender</label>
                                <select name="gender_search"
                                        class="form-control">
                                    <option value="">Select Gender</option>
                                    <option value="1">Male</option>
                                    <option value="2">Female</option>
                                </select>
                            </div>
                            <div class="col-md-4 form-group">
                                <label class="control-label">Lead Source</label>
                                <select data-live-search="true" name="lead_source_search" id="lead_source_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Lead Source</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'leadSource')->whereNull('is_primary')->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-4 form-group">
                                <label class="control-label">Role</label>
                                <select data-live-search="true" name="cr_search" id="cr_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Contact Role</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'contactRole')->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-4 form-group">
                                <label class="control-label">AML Status</label>
                                <select name="aml_search"
                                        class="form-control">
                                    <option value="">Select AML Status</option>
                                    <option value="1">Complete</option>
                                    <option value="2">Incomplete</option>
                                </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="contactSearchFormReset" class="btn btn-primary">Reset</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="contactsListTable" 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.contacts.contactsListTemplate', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.contacts.contactListingsListTemplate', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.contacts.modals.addContactModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.contacts.modals.contactListingsModal', \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/contactsScript.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/contacts/contacts.blade.php ENDPATH**/ ?>