Current File : /home/tradevaly/public_html/storage/framework/views/c76267b2b07389439a99a8479f0074d14a0333a8.php |
<header id="page-topbar">
<div class="navbar-header">
<div class="d-flex">
<!-- LOGO -->
<!--<div class="navbar-brand-box">-->
<!-- <div class="navbar-brand-box">-->
<!-- <img src="https://atlb2b.ayaantec.com/public/assets/frontend/img/logo.png" alt="image" class='img-fluid'>-->
<!--</div>-->
<!--</div> -->
<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>
</div>
<div class="d-flex">
<a href="<?php echo e(url('/')); ?>" class="top_bottom_center"><span style="font-size:18px;padding-right:3px">↱</span> Return Website</a>
<?php if(Auth::user()->package_id==1): ?>
<div class="dropdown d-inline-block">
<button onclick="window.location.href = '/user/subscription/changeplan';"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" key="t-henry"> <i class="far fa-star d-xl-inline-block fa-spin" aria-hidden="true"></i> Try Premium Services</span>
</button>
</div>
<?php endif; ?>
<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('reciver',auth()->id())->where('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('reciver',auth()->id())->where('user_del',"no")->take(5)->latest()->get();
?>
<div class="dropdown-divider"></div>
<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<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('user.recommand.offer.foryou.details',$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('product.view',$pdata->slug)); ?>
<?php endif; ?>
<?php endif; ?>
<?php if($notification->type=="order"): ?>
<?php echo e(route('user.order.view',$notification->data)); ?>
<?php endif; ?>
">
<?php if($notification->seen==null): ?>
<strong><?php echo e($notification->user->name." ".$notification->message); ?></strong>
<?php else: ?>
<?php echo e($notification->user->name." ".$notification->message); ?>
<?php endif; ?>
</a>
<hr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-primary" href="<?php echo e(route('user.notification.index')); ?>">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/user/avatar/'.Auth::guard('web')->user()->image)); ?>"
alt="Header Avatar">
<span class="d-none d-xl-inline-block ms-1" key="t-henry"> <?php echo e(Auth::user()->name); ?></span>
<i class="mdi mdi-chevron-down d-none d-xl-inline-block"></i>
</button>
<div class="dropdown-menu dropdown-menu-end">
<!-- item-->
<a class="dropdown-item text-primary" href="<?php echo e(route('user.profile')); ?>"><i class="fa fa-user font-size-16 align-middle me-1 text-primary"></i> <span key="t-logout"><?php echo app('translator')->get('My Profile'); ?></span></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-primary" href="<?php echo e(route('user.password')); ?>"><i class="fa fa-cog font-size-16 align-middle me-1 text-primary"></i> <span key="t-logout"><?php echo app('translator')->get('Setting'); ?></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/user/ayaan/topbar.blade.php ENDPATH**/ ?>