[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 1edfe685835e690bd93643a9e0874365.php
<?php $__env->startSection('content'); ?> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header d-flex align-items-center"> <span class="panel-title"><?php echo e(_lang('Invoices')); ?></span> <a class="btn btn-primary btn-xs ml-auto" href="<?php echo e(route('invoices.create')); ?>"><i class="ti-plus mr-1"></i><?php echo e(_lang('New Invoice')); ?></a> </div> <div class="card-body"> <div class="row"> <div class="col-lg-3 mb-2"> <div class="input-group"> <input type="text" class="form-control" name="invoice_number" id="invoice_number" placeholder="<?php echo e(_lang('Invoice Number')); ?>"> <div class="input-group-append"> <button type="button" class="btn btn-outline-secondary" id="submit_invoice_number"><i class="fas fa-search"></i></button> </div> </div> </div> <div class="col-lg-3 mb-2"> <select class="form-control select2 select-filter" name="customer_id"> <option value=""><?php echo e(_lang('All Customers')); ?></option> <?php $__currentLoopData = \App\Models\Customer::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($customer->id); ?>"><?php echo e($customer->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-lg-3 mb-2"> <select class="form-control multi-selector select-filter" data-placeholder="<?php echo e(_lang('All Statuses')); ?>" name="status" multiple> <option value="0"><?php echo e(_lang('Draft')); ?></option> <option value="1"><?php echo e(_lang('Approved')); ?></option> <option value="2"><?php echo e(_lang('Paid')); ?></option> <option value="3"><?php echo e(_lang('Partially Paid')); ?></option> <option value="4"><?php echo e(_lang('Canceled')); ?></option> </select> </div> <div class="col-lg-3"> <input type="text" class="form-control select-filter" id="date_range" autocomplete="off" placeholder="<?php echo e(_lang('Date Range')); ?>" name="date_range"> </div> </div> </div> </div> <div class="card"> <div class="card-body pt-0 mt-0"> <table id="invoices_table" class="table rounded-table-header mt-0"> <thead> <tr> <th><?php echo e(_lang('Date')); ?></th> <th><?php echo e(_lang('Due Date')); ?></th> <th><?php echo e(_lang('Invoice Number')); ?></th> <th><?php echo e(_lang('Customer')); ?></th> <th class="text-right"><?php echo e(_lang('Grand Total')); ?></th> <th class="text-right"><?php echo e(_lang('Amount Due')); ?></th> <th class="text-center"><?php echo e(_lang('Status')); ?></th> <th class="text-center"><?php echo e(_lang('Action')); ?></th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script> (function ($) { "use strict"; var invoice_table = $('#invoices_table').DataTable({ processing: true, serverSide: true, ajax: ({ url: '<?php echo e(url('user/invoices/get_table_data')); ?>', method: "POST", data: function (d) { d._token = $('meta[name="csrf-token"]').attr('content'); if($('input[name=invoice_number]').val() != ''){ d.invoice_number = $('input[name=invoice_number]').val(); } if($('select[name=customer_id]').val() != ''){ d.customer_id = $('select[name=customer_id]').val(); } if($('select[name=status]').val().length > 0){ d.status = JSON.stringify($('select[name=status]').val()); } if($('input[name=date_range]').val() != ''){ d.date_range = $('input[name=date_range]').val(); } }, error: function (request, status, error) { console.log(request.responseText); } }), "columns" : [ { data : 'invoice_date', name : 'invoice_date' }, { data : 'due_date', name : 'due_date' }, { data : 'invoice_number', name : 'invoice_number', orderable: false }, { data : 'customer.name', name : 'customer.name', orderable: false }, { data : 'grand_total', name : 'grand_total', orderable: false }, { data : 'amount_due', name : 'amount_due', orderable: false }, { data : 'status', name : 'status', orderable: false }, { data : 'action', name : 'action', orderable: false }, ], responsive: true, "bStateSave": true, "bAutoWidth":false, "ordering": false, "dom": "<'row'<'col-sm-12 col-md-6'><'col-sm-12 col-md-6'>>" + "<'row mt-0'<'col-sm-12'tr>>" + "<'row'<'col-sm-12 col-md-5 mt-2'l><'col-sm-12 col-md-7 mt-2'p>>", "language": { "decimal": "", "emptyTable": "<?php echo e(_lang('No Data Found')); ?>", "info": "<?php echo e(_lang('Showing')); ?> _START_ <?php echo e(_lang('to')); ?> _END_ <?php echo e(_lang('of')); ?> _TOTAL_ <?php echo e(_lang('Entries')); ?>", "infoEmpty": "<?php echo e(_lang('Showing 0 To 0 Of 0 Entries')); ?>", "infoFiltered": "(filtered from _MAX_ total entries)", "infoPostFix": "", "thousands": ",", "lengthMenu": "<?php echo e(_lang('Show')); ?> _MENU_ <?php echo e(_lang('Entries')); ?>", "loadingRecords": "<?php echo e(_lang('Loading...')); ?>", "processing": "<?php echo e(_lang('Processing...')); ?>", "search": "<?php echo e(_lang('Search')); ?>", "zeroRecords": "<?php echo e(_lang('No matching records found')); ?>", "paginate": { "first": "<?php echo e(_lang('First')); ?>", "last": "<?php echo e(_lang('Last')); ?>", "previous": "<i class='fas fa-angle-left'></i>", "next": "<i class='fas fa-angle-right'></i>" } } }); $('#submit_invoice_number').on('click', function(e) { invoice_table.draw(); }); $('.select-filter').on('change', function(e) { invoice_table.draw(); }); $('#date_range').daterangepicker({ autoUpdateInput: false, locale: { format: 'YYYY-MM-DD', cancelLabel: 'Clear' } }); $('#date_range').on('apply.daterangepicker', function(ev, picker) { $(this).val(picker.startDate.format('YYYY-MM-DD') + ' - ' + picker.endDate.format('YYYY-MM-DD')); invoice_table.draw(); }); $('#date_range').on('cancel.daterangepicker', function(ev, picker) { $(this).val(''); invoice_table.draw(); }); $(document).on("ajax-screen-submit", function () { invoice_table.draw(); }); })(jQuery); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eliosofonline/acc.eliosof.com/resources/views/backend/user/invoice/list.blade.php ENDPATH**/ ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.79 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002