
<?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> Off Plan Inventories (<span
                            id="module_total_count"></span>)
                    </div>
                    <div class="pull-right">
                        <button type="button" data-toggle="modal" data-target="#addOffplanModal"
                                class="btn btn-primary"><i
                                class="fa fa-plus"></i> Add New
                        </button>
                        <button type="button" data-toggle="modal" data-target="#uploadFileModal"
                                class="btn btn-primary"><i
                                class="fa fa-upload"></i> Upload File
                        </button>
                        <a target="_blank" href="<?php echo e(asset('assets/files/offplan_sample.xlsx')); ?>"
                           class="btn btn-primary"><i
                                class="fa fa-download"></i> Download Sample File
                        </a>
                    </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="offplanSearchFrom">
                        <div class="row">
                            <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">Developer</label>
                                <select data-live-search="true" id="developer_search" name="developer_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Developer</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'developer')->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">Unit Type</label>
                                <select data-live-search="true" name="unit_type_search" id="unit_type_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Unit Type</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'unitType')->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">Development status</label>
                                <select data-live-search="true" name="development_status_search" id="development_status_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Development status</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'developmentStatus')->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">Sale status</label>
                                <select data-live-search="true" name="sale_status_search" id="sale_status_search"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Development status</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'saleStatus')->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="offplanSearchFormReset" class="btn btn-primary">Reset</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="offplanListTable" 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.offplan.offplanListTemplate', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.offplan.modals.addOffplanModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.offplan.modals.uploadFileModal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <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 src="<?php echo e(asset('back_assets/assets/plugins/alerts-boxes/js/sweetalert.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/offplanScript.js')); ?>?<?php echo e(app_version()); ?>"></script>
    <?php if(Session::has('errors')): ?>
        <script type="text/javascript">
            swal({
                html: "true",
                title: "",
                text: "<ul style='text-align: left;list-style: disc;margin-left: 0;'><?php $__currentLoopData = Session::get('errors'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($error); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>",
                type: "error"
            }, function () {
                $('#uploadFileModal').modal('show')
            });
        </script>
    <?php endif; ?>
    <?php if(Session::has('success')): ?>
        <script type="text/javascript">
            swal({
                title: "",
                text: '<?php echo e(Session::get('success')); ?>',
                type: "success"
            });
        </script>
    <?php endif; ?>
<?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/offplan/offplan.blade.php ENDPATH**/ ?>