[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 0bfa2a073d7d54a3a47886eda0f0d299.php
<nav class="header-navbar navbar navbar-expand-lg align-items-center floating-nav navbar-light container-xxl navBar" id="desktopmenu"> <div class="navbar-container d-flex content align-items-center "> <ul class="nav navbar-nav align-items-center px-2"> <?php if(hasPermission(['medicine.create','supplier.create','vendor.create','purchase.create'])): ?> <li class="nav-item"> <div class="dropdown"> <button class="btn btn-primary border-r20" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false"> Add New <i class="fa fa-plus-circle"></i> </button> <ul class="dropdown-menu border-r20 border-0 shadow-lg overflow-hidden" aria-labelledby="dropdownMenuButton1"> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('medicines.create')): ?> <li> <a class="dropdown-item" href="<?php echo e(route('medicines.create')); ?>"> <i class="fas fa-pills"></i> Add Medicine </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier.create')): ?> <li> <a class="dropdown-item" href="<?php echo e(route('supplier.create')); ?>"> <i class="fa-solid fa-people-carry-box"></i> Add Manufacture </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchase.create')): ?> <li> <a class="dropdown-item" href="<?php echo e(route('purchase.create')); ?>"> <i class="fas fa-cart-shopping"></i> Add Purchase </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('vendor.create')): ?> <li> <a class="dropdown-item" href="<?php echo e(route('vendor.create')); ?>"> <i class="fa-solid fa-store"></i> Add Vendor </a> </li> <?php endif; ?> </ul> </div> </li> <?php endif; ?> </ul> <ul class="nav navbar-nav align-items-center px-2 m-auto"> <li class="nav-item"> <h5 class="m-0 fw-bold date"> <?php echo e(date('l, F j, Y')); ?> </h5> </li> </ul> <ul class="nav navbar-nav align-items-center ms-auto gap-1"> <?php if(isStoreAdmin()): ?> <li class="nav-item"> <a class="btn btn-warning text-white px-1 border-r20" href="<?php echo e(route('admin.dashboard')); ?>"> Admin Panel <i class="fa fa-reply"></i> </a> </li> <?php endif; ?> <?php use Illuminate\Support\Facades\Schema; use App\Models\Ecommerce\Order; ?> <!-- Ecommerce order notification --> <?php if(Schema::hasTable('orders')): ?> <?php $now = \Illuminate\Support\Carbon::now(); $orders = []; $query = Order::with('orderDetails', 'orderDetails.product')->whereDate('created_at', $now->toDateString()); $orders = $query ->latest() ->take(10) ->get(); ?> <?php endif; ?> <li class="nav-item dropdown dropdown-language"> <?php $langact = \App\Models\Language::where('iso',app()->getLocale())->first(); $languages = \App\Models\Language::select('id','iso','name','icon')->where('status', 1)->get(); $date = date('Y-m-d', time()); $expire_medicine = \App\Models\Batch::where('expire', '<=', $date) ->count(); $stockout_medicine = \App\Models\Medicine::whereHas('batch', function ($query) { $query->where('qty', '<', 1); })->count(); ?> <a class="nav-link dropdown-toggle" id="dropdown-flag" href="<?php echo e(route('language.change', @$langact->iso ?? app()->getLocale())); ?>" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <img class="rounded-circle" src="<?php echo e(@globalAsset($langact->icon)); ?>" height="20" width="20" alt=""> <span class="selected-language"><?php echo e(@$langact->name); ?></span> </a> <div class="dropdown-menu dropdown-menu-end border-0 shadow-sm rounded-3" aria-labelledby="dropdown-flag"> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a class="dropdown-item d-flex gap-1 mx-1 p-0 rounded-3" href="<?php echo e(route('language.change', $lang->iso)); ?>" data-language="en"> <img class="rounded-circle" src="<?php echo e(@globalAsset($lang->icon,'language')); ?>" height="20" width="20" alt=""> <span><?php echo e($lang->name); ?></span> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </li> <li class="nav-item dropdown dropdown-cart me-25"> <a class="nav-link h5 fw-bold mb-0" href="<?php echo e(route('pos.index')); ?>">(POS) <i class="fas fa-print"></i></a> </li> <?php $notifications = \App\Models\Notification::where('receiver_id', auth()->id())->orderBy('seen','asc')->limit(10)->get(); ?> <li class="nav-item dropdown mx-3"> <a class="nav-link" title="Ecommerce orders" href="#" data-bs-toggle="dropdown" aria-expanded="true"> <i class="ficon text-dark" data-feather="bell"></i> <span class="badge rounded-pill bg-danger badge-up"><?php echo e($notifications->where('seen',0)->count()); ?></span> </a> <div class="dropdown-menu dropdown-menu-end dropDown shadow-lg border-0 admin-notification-dropdown"> <div class="list-group list-group-flush"> <div class="list-group-item"> <h4 class="position-relative text-primary"><?php echo e(translate('Notications')); ?> (<?php echo e(count($notifications)); ?>) </h4> </div> </div> <div class="notification-box"> <?php $__empty_1 = true; $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="list-group list-group-flush"> <div class="list-group-item d-flex"> <i class="ficon <?php echo e($notification->seen ? 'text-secondary': 'text-primary'); ?> me-1" data-feather="bell"></i> <a href="<?php echo e(route('notification.show', $notification->id)); ?>" class="<?php echo e($notification->seen ? 'text-muted': 'text-dark'); ?>"> <h5 class="<?php echo e($notification->seen ? 'text-muted': 'text-dark'); ?>"><?php echo e($notification->title); ?></h5> <div class="description"> <?php echo e(\Illuminate\Support\Str::of($notification->description)->words(7,'...')); ?> <br><small class="text-muted"><?php echo e($notification->sender ? $notification->sender->name : ($notification->adminSender? $notification->adminSender->name : '')); ?>, <?php echo e($notification->created_at); ?></small> </div> </a> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <div class="list-group list-group-flush"> <div class="list-group-item"> <h5 class="text-center my-5"> <i class="ficon text-dark fa-2x" data-feather="info"></i> <p><?php echo e(translate('You do not have any notification')); ?>!</p> </h5> </div> </div> <?php endif; ?> </div> <div class="list-group list-group-flush"> <div class="list-group-item justify-content-center"> <a href="<?php echo e(route('notification.index')); ?>" class="d-block text-center text-decoration-underline"> <?php echo e(translate('View All Notification')); ?> </a> </div> </div> </div> </li> <li class="nav-item dropdown dropdown-user"><a class="nav-link dropdown-toggle dropdown-user-link" id="dropdown-user" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <div class="user-nav d-sm-flex d-none"><span class="user-name fw-bolder"><?php echo e(\Auth::user()->name); ?></span><span class="user-status"> <?php if(count(Auth::user()->getRoleNames())): ?> <?php echo e(Auth::user()->getRoleNames()[0]); ?> <?php endif; ?> </span> </div> <span class="avatar"><img class="round" <?php if(!empty(Auth::user()->image)): ?> src="<?php echo e(asset('storage/images/profile/' . Auth::user()->image . '')); ?>" <?php else: ?> src="<?php echo e(asset('dashboard/app-assets/images/f2.jpg')); ?>" <?php endif; ?> alt="avatar" height="40" width="40"><span class="avatar-status-online"></span></span> </a> <div class="dropdown-menu dropdown-menu-end dropDown shadow-lg border-0" aria-labelledby="dropdown-user"> <a class="dropdown-item" href="<?php echo e(route('profile.setting')); ?>"><i class="me-50 fas fa-th"></i> <?php echo e(__('Dashboard')); ?></a> <a class="dropdown-item py-1" href="<?php echo e(route('profile.setting')); ?>"><i class="me-50" data-feather="lock"></i> <?php echo e(__('Change Password')); ?> </a> <a class="dropdown-item py-1" href="<?php echo e(route('profile.info.setting')); ?>"><i class="me-50" data-feather="eye"></i> <?php echo e(__('Change Info')); ?> </a> <a class="dropdown-item py-1" href="<?php echo e(route('setting.generalSetting')); ?>"><i class="me-50" data-feather="settings"></i> <?php echo e(__('Settings')); ?> </a> <div class="dropdown-divider"></div> <a class="dropdown-item py-1" href="<?php echo e(route('logout')); ?>"><i class="me-50" data-feather="power"></i> <?php echo e(__('Logout')); ?> </a> </div> </li> </ul> </div> </nav> <!-- END: Header--> <!--Mobile Menu--> <nav class="header-navbar navbar navbar-expand-lg align-items-center floating-nav navbar-light container-xxl navBar" id="mobilemenu"> <div class="navbar-container d-flex content"> <div class="bookmark-wrapper d-flex align-items-center"> <ul class="nav navbar-nav d-xl-none"> <li id="mm" class="nav-item"><a class="nav-link menu-toggle" href="#"><i class="fa fa-bars"></i></a> </li> </ul> </div> <ul id="mul" class="nav navbar-nav align-items-center"> <li id="mm" class="nav-item dropdown dropdown-cart me-25"><a class="nav-link" href="<?php echo e(route('profit')); ?>"><i class="fas fa-file-text"></i></a></li> <li id="mm" class="nav-item dropdown dropdown-cart me-25"><a class="nav-link" href="<?php echo e(route('pos.index')); ?>"><i class="fas fa-print"></i></a></li> <li id="mm" class="nav-item dropdown dropdown-cart me-25"><a class="nav-link" href="<?php echo e(route('profile.info.setting')); ?>"><i class="fas fa-cog"></i></a></li> <li id="mm" class="nav-item dropdown dropdown-cart me-25"><a class="nav-link" href="<?php echo e(route('logout')); ?>"><i class="fa fa-power-off"></i></a></li> </ul> </div> </nav> <?php /**PATH /home/eliosofonline/pham.eliosof.com/resources/views/layouts/partials/header.blade.php ENDPATH**/ ?>
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.47 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