[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: shop_user_route.blade.php
@php $role_permissions = App\Models\Permission::where('role_id', Auth::user()->role_id)->first(); $permissions = []; if (!empty($role_permissions)) { $permissions = json_decode($role_permissions->permissions, true); } @endphp <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation"> <li class=" nav-item {{ active_if_full_match('dashboard') }}"> <a class="d-flex align-items-center" href="{{ route('dashboard') }}"> <i class="fa fa-tachometer" aria-hidden="true"></i> <span class="menu-title text-truncate" data-i18n="Dashboards">{{ translate('common.dashboard') }}</span> </a> </li> @if (array_key_exists('customers_add', $permissions) || array_key_exists('customers_list', $permissions)) <li class=" nav-item {{ active_if_match('customer/add') }} || {{ active_if_match('customer/list') }}"><a class="d-flex align-items-center" href="#"><i class="fas fa-users"></i><span class="menu-title text-truncate" data-i18n="Invoice">{{ translate('common.customer') }}</span></a> <ul class="menu-content"> @if (array_key_exists('customers_add', $permissions)) <li class="{{ active_if_full_match('customer/add') }}"> <a class="d-flex align-items-center" href="{{ route('customer.add') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="List">{{ translate('common.customer_add') }}</span> </a> </li> @endif @if (array_key_exists('customers_list', $permissions)) <li class="{{ active_if_full_match('customer/list') }} {{ active_if_full_match('customer/edit/*') }} {{ active_if_full_match('customer/view/*') }}"> <a class="d-flex align-items-center" href="{{ route('customer.list') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Preview">{{ translate('common.customer_list') }}</span></a> </li> @endif </ul> </li> @endif @if (array_key_exists('in_stock', $permissions) || array_key_exists('emergency_stock', $permissions) || array_key_exists('stockout', $permissions) || array_key_exists('upcoming_expired', $permissions) || array_key_exists('already_expired', $permissions) || array_key_exists('lowstock', $permissions)) <li class=" nav-item {{ active_if_match('in_stock') }} || {{ active_if_match('emergency-stock') }} || {{ active_if_match('medicines/stockout') }} || {{ active_if_match('upcoming') }} || {{ active_if_match('medicines/expired') }}"> <a class="d-flex align-items-center" href="#"><i class="fas fa-pills"></i><span class="menu-title text-truncate" data-i18n="Invoice">{{ translate('Medicine Stock') }}</span> </a> <ul class="menu-content"> @if (array_key_exists('in_stock', $permissions)) <li class="{{ active_if_full_match('in_stock') }}"> <a class="d-flex align-items-center" href="{{ route('instock') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="List">{{ translate('In Stock') }}</span></a> </li> @endif @if (array_key_exists('lowstock', $permissions)) <li class="{{ active_if_full_match('medicines/lowstock') }}"> <a class="d-flex align-items-center" href="{{ route('lowstock') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="List"> {{ translate('Low Stock') }} </span> </a> </li> @endif @if (array_key_exists('stockout', $permissions)) <li class="{{ active_if_full_match('medicines/stockout') }}"><a class="d-flex align-items-center" href="{{ route('stockout') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="List">{{ translate('Stockout') }}</span></a> </li> @endif @if (array_key_exists('upcoming_expired', $permissions)) <li class="{{ active_if_full_match('upcoming') }}"><a class="d-flex align-items-center" href="{{ route('upcoming') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="List">{{ translate('Upcoming Expired') }}</span></a> </li> @endif @if (array_key_exists('already_expired', $permissions)) <li class="{{ active_if_full_match('medicines/expired') }}"><a class="d-flex align-items-center" href="{{ route('expired') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="List">{{ translate('Already Expired') }}</span></a> </li> @endif </ul> </li> @endif <!--Systems menus --> @if (array_key_exists('admin_user', $permissions) || array_key_exists('roles', $permissions)) <li class=" nav-item {{ active_if_match('admin/admin') }} || {{ active_if_match('admin/role') }}"> <a class="d-flex align-items-center" href="#"> <i class="fas fa-cogs"></i> <span class="menu-title text-truncate" data-i18n="Invoice"> {{ translate('Systems') }} </span> </a> <ul class="menu-content"> @if (array_key_exists('admin_user', $permissions)) <li class="{{ active_if_full_match('admin/admin') }}"> <a class="d-flex align-items-center" href="{{ route('admin.index') }}"> <i class="fas fa-user"></i> <span class="menu-item text-truncate" data-i18n="List"> {{ translate('Admin User') }} </span> </a> </li> @endif @if (array_key_exists('roles', $permissions)) <li class="{{ active_if_full_match('admin/role') }}"> <a class="d-flex align-items-center" href="{{ route('role.index') }}"> <i class="fas fa-lock"></i> <span class="menu-item text-truncate" data-i18n="List"> {{ translate('Roles') }} </span> </a> </li> @endif </ul> </li> @endif @if (array_key_exists('manufacturers_add', $permissions) || array_key_exists('manufacturers_list', $permissions)) <li class=" nav-item {{ active_if_match('supplier/*') }}"><a class="d-flex align-items-center" href="#"><i class="fa-solid fa-people-carry-box"></i><span class="menu-title text-truncate" data-i18n="Invoice">{{ translate('common.supplier') }}</span></a> <ul class="menu-content"> @if (array_key_exists('manufacturers_add', $permissions)) <li class="{{ active_if_full_match('supplier/add') }}"> <a class="d-flex align-items-center" href="{{ route('supplier.add') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="List">{{ translate('common.supplier_add') }}</span></a> </li> @endif @if (array_key_exists('manufacturers_list', $permissions)) <li class="{{ active_if_full_match('supplier/list*') }} {{ active_if_full_match('supplier/edit/*') }} {{ active_if_full_match('supplier/view/*') }}"> <a class="d-flex align-items-center" href="{{ route('supplier.list') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Preview">{{ translate('common.supplier_list') }}</span></a> </li> @endif </ul> </li> @endif <!-- Vendors Routes --> @if (array_key_exists('vendor_add', $permissions) || array_key_exists('vendor_list', $permissions)) <li class=" nav-item {{ active_if_match('vendor/*') }}"> <a class="d-flex align-items-center" href="#"> <i class="fa-solid fa-store"></i> <span class="menu-title text-truncate" data-i18n="Invoice">{{ translate('common.vendors') }}</span> </a> <ul class="menu-content"> @if (array_key_exists('vendor_add', $permissions)) <li class="{{ active_if_full_match('vendor/create') }}"> <a class="d-flex align-items-center" href="{{ route('vendor.create') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="List">{{ translate('common.vendor_add') }}</span> </a> </li> @endif @if (array_key_exists('vendor_list', $permissions)) <li class="{{ active_if_full_match('vendor/list') }} {{ active_if_full_match('vendor/*/view') }}"> <a class="d-flex align-items-center" href="{{ route('vendor.index') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Preview">{{ translate('common.vendor_list') }}</span></a> </li> @endif </ul> </li> @endif @if (array_key_exists('medicine_add', $permissions) || array_key_exists('medicine_list', $permissions) || array_key_exists('categories', $permissions) || array_key_exists('units', $permissions) || array_key_exists('leaf', $permissions) || array_key_exists('types', $permissions)) <li class=" nav-item {{ active_if_match('medicines/add') }} || {{ active_if_match('medicines/list') }} || {{ active_if_match('medicines/categories') }} || {{ active_if_match('medicines/unit') }} || {{ active_if_match('medicines/leaf') }} || {{ active_if_match('medicines/types') }}"> <a class="d-flex align-items-center" href="#"><i class="fas fa-pills"></i><span class="menu-title text-truncate" data-i18n="Invoice">{{ translate('common.medicine') }}</span></a> <ul class="menu-content"> @if (array_key_exists('medicine_add', $permissions)) <li class="{{ active_if_full_match('medicines/add') }}"><a class="d-flex align-items-center" href="{{ route('medicine.add') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="List">{{ translate('common.medicine_add') }}</span></a> </li> @endif @if (array_key_exists('medicine_list', $permissions)) <li class="{{ active_if_full_match('medicines/list') }} {{ active_if_match('medicines/edit/*') }}"> <a class="d-flex align-items-center" href="{{ route('medicine.list') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Preview">{{ translate('common.medicine_list') }}</span></a> </li> @endif @if (array_key_exists('categories', $permissions)) <li class="{{ active_if_full_match('medicines/categories') }}"> <a class="d-flex align-items-center" href="{{ route('category') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="Add"> {{ translate('common.categories') }} </span> </a> </li> @endif @if (array_key_exists('units', $permissions)) <li class="{{ active_if_full_match('medicines/unit') }}"><a class="d-flex align-items-center" href="{{ route('units') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Add">{{ translate('common.units') }}</span></a> </li> @endif @if (array_key_exists('leaf', $permissions)) <li class="{{ active_if_full_match('medicines/leaf') }}"><a class="d-flex align-items-center" href="{{ route('leaf') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Add">{{ translate('common.leaf') }}</span></a> </li> @endif @if (array_key_exists('types', $permissions)) <li class="{{ active_if_full_match('medicines/type*') }}"> <a class="d-flex align-items-center" href="{{ route('types') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="Add"> {{ translate('common.types') }} </span> </a> </li> @endif </ul> </li> @endif @if (array_key_exists('new_purchase', $permissions) || array_key_exists('purchase_history', $permissions) || array_key_exists('new_invoice', $permissions)) <li class=" nav-item {{ active_if_match('purchase/*') }} "><a class="d-flex align-items-center" href="#"><i class="fas fa-cart-shopping"></i><span class="menu-title text-truncate" data-i18n="Invoice">{{ translate('common.purchase') }}</span></a> <ul class="menu-content"> @if (array_key_exists('new_purchase', $permissions)) <li class="{{ active_if_full_match('purchase/create') }} {{ active_if_match('purchase/create') }}"> <a class="d-flex align-items-center" href="{{ route('purchase.create') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="List">{{ translate('common.new_purchase') }}</span></a> </li> @endif @if (array_key_exists('purchase_history', $permissions)) <li class="{{ active_if_full_match('purchase/index') }} {{ active_if_match('purchase/index') }}"> <a class="d-flex align-items-center" href="{{ route('purchase.index') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Preview">{{ translate('common.purchase_history') }}</span></a> </li> @endif @if (array_key_exists('return_history', $permissions)) <li class="{{ active_if_full_match('purchase/return-history') }}"> <a class="d-flex align-items-center" href="{{ route('purchase.return') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Preview">{{ translate('Return History') }}</span></a> </li> @endif </ul> </li> @endif @if (array_key_exists('new_invoice', $permissions) || array_key_exists('invoice_history', $permissions)) <li class=" nav-item {{ active_if_match('invoice*') }} || {{ active_if_match('returned_history') }}"><a class="d-flex align-items-center" href="#"><i class="fa-solid fa-file-invoice"></i><span class="menu-title text-truncate" data-i18n="Invoice">{{ translate('Sales') }}</span></a> <ul class="menu-content"> @if (array_key_exists('create_invoice', $permissions)) <li class="{{ active_if_full_match('invoice/new*') }}"> <a class="d-flex align-items-center" href="{{ route('pos.index') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="List"> {{ translate('New Invoice') }} </span> </a> </li> @endif @if (array_key_exists('invoice_history', $permissions)) <li class="active_if_full_match('invoice/reports*') }} {{ active_if_match('invoice/reports') }}"> <a class="d-flex align-items-center" href="{{ route('invoice.reports') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="Preview"> {{ translate('Invoice History') }} </span> </a> </li> @endif @if (array_key_exists('return_history', $permissions)) <li class="active_if_full_match('returned_history') }} {{ active_if_match('returned_history') }}"> <a class="d-flex align-items-center" href="{{ route('return.history') }}"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="Preview">{{ translate('Return History') }}</span></a> </li> @endif </ul> </li> @endif @if (array_key_exists('my_plan', $permissions) || array_key_exists('renew_subscription', $permissions)) <li class=" nav-item {{ active_if_match('plan/*') }}"> <a class="d-flex align-items-center" href="#"> <i class="fas fa-clipboard-list"></i> <span class="menu-title text-truncate" data-i18n="Invoice"> {{ translate('My Subscription') }} </span> </a> <ul class="menu-content"> @if (array_key_exists('my_plan', $permissions)) <li class="{{ active_if_full_match('plan') }}"> <a class="d-flex align-items-center" href="{{ route('plan') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="List"> {{ translate('My Plan') }} </span> </a> </li> @endif @if (array_key_exists('renew_subscription', $permissions)) <li class="{{ active_if_full_match('plan/renew') }}"> <a class="d-flex align-items-center" href="{{ route('renew.plan') }}"> <i data-feather="circle"></i> <span class="menu-item text-truncate" data-i18n="Add"> {{ translate('Renew Subscription') }} </span> </a> </li> @endif </ul> </li> @endif @if (array_key_exists('payment_method', $permissions)) <li class=" nav-item {{ active_if_full_match('payment_methdod') }}"> <a class="d-flex align-items-center" href="{{ route('payment.method') }}"> <i class="fa-solid fa-money-bill-wave"></i> <span class="menu-title text-truncate" data-i18n="Dashboards"> {{ translate('common.payment_method') }} </span> </a> </li> @endif @if (array_key_exists('site_setting', $permissions)) <li class=" nav-item {{ active_if_full_match('settings') }}"> <a class="d-flex align-items-center" href="{{ route('settings') }}"> <i class="fa-solid fa-cog"></i> <span class="menu-title text-truncate" data-i18n="Dashboards"> {{ translate('common.site_setting') }} </span> </a> </li> @endif </ul>
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.68 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