%PDF- %PDF-
Direktori : /home/silvzytp/dsr_code/storage/framework/views/ |
Current File : //home/silvzytp/dsr_code/storage/framework/views/a790c4d049206d37af364127709a6a26c8095f4f.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startSection('action'); ?> <a href="<?php echo e(route('super.monthly.create')); ?>" class="btn btn-sm btn-primary"><i class="ti-plus fs-ism fw-800"></i> Add New</a> <?php $__env->stopSection(); ?> <?php $__env->startPush('styles'); ?> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" /> <style> thead.fixed{ position: fixed; top: 55px; left: 0; width: 100%; margin-left: 230px; background: #fff; z-index: 999; border-bottom: 1px solid #e6e6e6; } @media only screen and (max-width: 576px){ thead.fixed{ position: inherit; margin-left: 0; } } .onoffswitch { position: relative; width: 95px; -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none; } .onoffswitch-checkbox { display: none; } .onoffswitch-label { display: block; overflow: hidden; cursor: pointer; border-radius: 20px; margin-bottom: 0; } .onoffswitch-inner { display: block; width: 200%; margin-left: -100%; transition: margin 0.3s ease-in 0s; } .onoffswitch-inner:before, .onoffswitch-inner:after { display: block; float: left; width: 50%; height: 25px; padding: 0; line-height: 25px; font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: 400; box-sizing: border-box; } .onoffswitch-inner:before { content: "Enabled"; padding-left: 10px; background-color: green; color: #FFFFFF; } .onoffswitch-inner:after { content: "Disabled"; padding-right: 10px; background-color: red; color: #FFFFFF; text-align: right; } .onoffswitch-switch { display: block; width: 25px; margin: 2px; background: #FFFFFF; position: absolute; top: 0; bottom: 0; right: 67px; border-radius: 20px; transition: all 0.3s ease-in 0s; } .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { margin-left: 0; } .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { right: 0px; } .date-range{ min-width: 100px; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <div id="bulk-ibox" class="d-none"> <form method="POST" id="bulk-form"> <?php echo csrf_field(); ?> <div class="d-flex align-items-center mb-3"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'operation','divClass' => 'mb-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.selectbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'operation','divClass' => 'mb-0']); ?> <option value="">--Select--</option> <option value="delete">Deleted</option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="bulk-apply"> <button class="btn btn-md btn-primary rounded-0 ml-2 px-3">Apply</button> </div> </div> </form> </div> <div class="ibox"> <div class="ibox-head"> <h4 class="mb-0 ibox-title">Filter</h4> </div> <div class="ibox-body"> <div class="row align-items-center"> <div class="col-lg-5"> <div class="d-flex align-items-center"> <strong class="mr-2">Agent</strong> <select name="agent" class="form-control"> <option value="">-- Select Agent --</option> <?php $__empty_1 = true; $__currentLoopData = $agents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($agent->agent_name); ?>"><?php echo e($agent->agent_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </div> </div> <div class="col-lg-5"> <div class="d-flex align-items-center"> <strong class="mr-2 date-range">Date Range</strong> <input type="text" class="form-control" id="date_range" placeholder="MM/DD/YY" autocomplete="off" autofocus> <input type="hidden" name="start_date"> <input type="hidden" name="end_date"> </div> </div> <div class="col-lg-2"> <button type="submit" class="btn btn-md btn-primary filter-btn">Filter</button> </div> </div> </div> </div> </div> <div class="col-12"> <div class="ibox"> <div class="ibox-body px-0"> <table class="table table-sm w-100 table-borderless table-style" id="commit-datatables"> <thead> <th width="10%">Date</th> <th width="10%">Agent Name</th> <th>Project Name</th> <th width="15%">Expected Meeting</th> <th>Expected Sale</th> <th>Meeting One</th> <th>Sale</th> <th>Action</th> </thead> <tbody> </tbody> <tfoot> <tr class="bg-danger" style="height: 40px;"> <th></th> <th></th> <th></th> <th class="text-light"></th> <th class="text-light"></th> <th class="text-light"></th> <th class="text-light"></th> <th></th> </tr> </tfoot> </table> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script> <script> table = $('#commit-datatables').DataTable({ processing: true, serverSide: true, order: [], //Initial no order bInfo: true, //TO show the total number of data bFilter: false, //For datatable default search box show/hide responsive: true, ordering: false, lengthMenu: [ [5, 10, 15, 25, 50, 100, 1000, 10000, -1], [5, 10, 15, 25, 50, 100, 1000, 10000, "All"] ], pageLength: 25, //number of data show per page ajax: { url: "<?php echo e(route('super.monthly.get-data')); ?>", type: "POST", dataType: "JSON", data: function(d) { d._token = _token; d.start_date = $('input[name="start_date"]').val(); d.end_date = $('input[name="end_date"]').val(); d.agent_name = $('select[name="agent"]').val(); }, }, columns: [ // {data: 'bulk_check',orderable: false, searchable: false}, {data: 'r_date'}, {data: 'agent_name'}, {data: 'project_name'}, {data: 'expected_meeting'}, {data: 'expected_sale'}, {data: 'meeting_done'}, {data: 'sale'}, {data: 'action'}, ], language: { processing: '<img src="<?php echo e(asset("uploads/images/table-loading.svg")); ?>">', emptyTable: '<strong class="text-danger">No Data Found</strong>', infoEmpty: '', zeroRecords: '<strong class="text-danger">No Data Found</strong>', oPaginate: { sPrevious: "Previous", // This is the link to the previous page sNext: "Next", // This is the link to the next page }, lengthMenu: "_MENU_" }, dom: "<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6' <'float-right pr-15'B>>>" + "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'<'float-right pr-15'p>>>", buttons: { buttons: [ { text: '<i class="fa fa-refresh" aria-hidden="true"></i> Reload', className: 'btn btn-sm btn-primary', action: function (e, dt, node, config) { dt.ajax.reload(null, false); } }, { extend: 'pdf', filename: 'monthly_commitment_<?php echo e(date("d_m_d")); ?>', title: 'Monthly Commitment List', text: '<i class="fa fa-file-pdf-o" aria-hidden="true"></i> PDF', orientation: "portrait", pageSize: "A4", className: 'pdfButton btn btn-sm btn-primary', exportOptions: { columns: '0,1,2,3,4,5,6' }, customize: function(doc) { doc.defaultStyle.alignment = 'center'; } }, { extend: 'excel', filename: 'monthly_commitment_<?php echo e(date("d-m-Y")); ?>', text: '<i class="fa fa-file-excel-o" aria-hidden="true"></i> Excel', className: 'excelButton btn btn-sm btn-primary', exportOptions: { columns: '0,1,2,3,4,5,6' }, }, { extend: 'print', text: '<i class="fa fa-print" aria-hidden="true"></i> Print', className: 'printButton btn btn-sm btn-primary', exportOptions: { columns: '0,1,2,3,4,5,6' }, customize: function (win){ $(win.document.body).find('table').css('text-align', 'center'); $(win.document.body).find('.table thead th').css('text-align', 'center'); } } ] }, "footerCallback" : function(row,data,start,end,display) { var api = this.api(), data; var intVal = function(i){ return typeof i === 'string' ? i.replace(/[\$,]/g,'')*1 : typeof i === 'number' ? i : 0; }; for(var index=3;index <= 6;index++) { total = api.column(index).data().reduce(function (a,b){ return intVal(a) + intVal(b); },0); pageTotal = api.column(index, {page: 'current'}).data().reduce(function (a,b){ return intVal(a) + intVal(b); },0); $(api.column(index).footer()).html(parseFloat(pageTotal).toFixed(2)); } } }); // custom search $(document).on('click', 'button.filter-btn', function(){ table.ajax.reload(); }); // user bulk deletable $(document).on('click', 'button.bulk-deletable-action', function(){ var data_id = $('#deletable-modal input.datatable').val(); var operation_type = $('#deletable-modal .modal-body input.operation-type').val(); const url = "<?php echo e(route('super.monthly.destroy')); ?>"; bulk_deletable_action(data_id,operation_type,url); }); // date range init $('input#date_range').daterangepicker({ opens: 'right', autoUpdateInput: false, locale: { cancelLabel: 'Clear' }, ranges: { 'Today' : [moment(), moment()], 'Last 7 Days' : [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'This Month' : [moment().startOf('month'), moment().endOf('month')], 'Last Month' : [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')], } }, function(start, end, label) { $('input[name="start_date"]').val(start.format('YYYY-MM-DD')); $('input[name="end_date"]').val(end.format('YYYY-MM-DD')); }); $('input#date_range').on('apply.daterangepicker', function(ev, picker) { $(this).val(picker.startDate.format('YYYY-MM-DD') + ' - ' + picker.endDate.format('YYYY-MM-DD')); }); $('input#date_range').on('cancel.daterangepicker', function(ev, picker) { $(this).val(''); }); $(document).ready(function(){ $(window).bind('scroll', function() { var navHeight = $(window).height() - 80; if ($(window).scrollTop() > navHeight) { $('thead').addClass('fixed'); } else { $('thead').removeClass('fixed'); } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/dsr_code/resources/views/backend/super-admin/pages/monthly_commit/index.blade.php ENDPATH**/ ?>