Current File : //home/tradevaly/public_html/storage/framework/views/57bc0efcb9a58bc8ea8ab58f566ecb2c9e432a29.php |
<header id="page-topbar">
<div class="navbar-header">
<div class="d-flex">
<!-- LOGO -->
<div class="navbar-brand-box" >
<a href="<?php echo e(route('admin.dashboard')); ?>" class="logo logo-dark">
<span class="logo-sm">
<img src="<?php echo e(asset('storage/images/admin/logo/'.$logo->image)); ?>" alt="<?php echo app('translator')->get('image'); ?>" height="100" style=" border-radius: 5px;">
</span>
<span class="logo-lg">
<img src="<?php echo e(asset('storage/images/admin/logo/'.$logo->image)); ?>" alt="<?php echo app('translator')->get('image'); ?>" height="10" style=" border-radius:5px;">
</span>
</a>
<a href="<?php echo e(route('admin.dashboard')); ?>" class="logo logo-light">
<span class="logo-sm">
<img src="<?php echo e(asset('storage/images/admin/logo/'.$logo->image)); ?>" alt="<?php echo app('translator')->get('image'); ?>" height="40" style=" border-radius: 5px;">
</span>
<span class="logo-lg">
<img src="<?php echo e(asset('storage/images/admin/logo/'.$logo->image)); ?>" "<?php echo app('translator')->get('image'); ?>" height="40" style=" border-radius: 5px;">
</span>
</a>
</div>
<button type="button" class="btn btn-sm px-3 font-size-16 header-item waves-effect" id="vertical-menu-btn">
<i class="fa fa-fw fa-bars"></i>
</button>
<!-- App Search-->
<!-- <form class="app-search d-none d-lg-block">-->
<!-- <div class="position-relative">-->
<!-- <input type="text" class="form-control navbar-search-field" placeholder="<?php echo app('translator')->get('Search here...'); ?>">-->
<!-- <span class="bx bx-search-alt"></span>-->
<!-- </div>-->
<!-- <ul class="search-list"></ul>-->
<!--</form>-->
</div>
<div class="d-flex">
<a target="_blank" href="<?php echo e(url('/')); ?>" class="top_bottom_center"><span style="font-size:18px;padding-right:3px">↱</span> Return Website</a>
<div class="dropdown d-inline-block">
<button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="d-none d-xl-inline-block ms-1 position-relative"key="t-henry">
<i class="fa fa-bell" style="font-size: 25px;0"></i>
<?php
$notificationCount = \App\Models\AdminNotification::where('admin_reciver','yes')->where('admin_seen',null)->count();
?>
<?php if($notificationCount>0): ?>
<div class="position-absolute" style="background: red;height: 15px;width: 15px;border-radius: 50%;color: white;font-weight: 600;top: -10px;right: -8px;z-index: 99;font-size: 10px;">
<?php echo e($notificationCount); ?>
</div>
<?php endif; ?>
</span>
</button>
<div class="dropdown-menu dropdown-menu-end" style="width: 300px;padding: 20px;">
<?php
$data = \App\Models\AdminNotification::where('admin_reciver','yes')->take(5)->latest()->get();
?>
<div class="dropdown-divider"></div>
<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($notification->user): ?>
<a href="
<?php if($notification->type=="inquery"): ?>
<?php
$pdata = \App\Models\BuyOffer::where('id',$notification->data)->first();
?>
<?php if(isset($pdata)): ?>
<?php echo e(route('admin.buy_offer.view',$pdata->id)); ?>
<?php endif; ?>
<?php endif; ?>
<?php if($notification->type=="new product"): ?>
<?php
$pdata = \App\Models\Product::where('id',$notification->data)->first();
?>
<?php if(isset($pdata)): ?>
<?php echo e(route('admin.product.pview',$pdata->slug)); ?>
<?php endif; ?>
<?php endif; ?>
<?php if($notification->type=="order"): ?>
<?php echo e(route('admin.order.view',$notification->data)); ?>
<?php endif; ?>
">
<?php if($notification->admin_seen==null): ?>
<strong><?php echo e($notification->user? $notification->user->name:" "); ?><?php echo e($notification->message); ?></strong>
<?php else: ?>
<?php echo e($notification->user->name." ".$notification->message); ?>
<?php endif; ?>
</a>
<hr>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-primary" href="<?php echo e(route('admin.notifications')); ?>">See all</a>
</div>
</div>
<div class="dropdown d-inline-block">
<button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img class="rounded-circle header-profile-user" src="<?php echo e(asset('storage/images/admin/avatar/'.Auth::guard('admin')->user()->image)); ?>"
alt="Header Avatar">
<span class="d-none d-xl-inline-block ms-1" key="t-henry"><?php echo e(ucfirst(Auth::guard('admin')->user()->name)); ?></span>
<i class="mdi mdi-chevron-down d-none d-xl-inline-block"></i>
</button>
<div class="dropdown-menu dropdown-menu-end">
<div class="dropdown-divider"></div>
<a class="dropdown-item text-primary" href="<?php echo e(route('admin.profile.index')); ?>"><i class="fa fa-cog font-size-16 align-middle me-1 text-primary"></i> <span key="t-logout"><?php echo app('translator')->get('Profile'); ?></span></a>
<a class="dropdown-item text-primary" href="<?php echo e(route('admin.password.reset')); ?>"><i class="fa fa-key font-size-16 align-middle me-1 text-primary"></i> <span key="t-logout">Password</span></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="javascript:void();" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><i class="bx bx-power-off font-size-16 align-middle me-1 text-danger"></i> <span key="t-logout"><?php echo app('translator')->get('Logout'); ?></span></a>
<form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
<?php echo csrf_field(); ?>
</form>
</div>
</div>
</div>
</div>
</header>
<?php /**PATH /home/tradevaly/public_html/resources/views/backend/ayaan/topbar.blade.php ENDPATH**/ ?>