Current File : /home/tradevaly/www/resources/views/user/ayaan/topbar.blade.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="{{route('admin.dashboard')}}" class="logo logo-dark">
<span class="logo-sm">
<img src="{{asset('storage/images/admin/logo/'.$logo->image)}}" alt="@lang('image')" height="100" style=" border-radius: 5px;">
</span>
<span class="logo-lg">
<img src="{{asset('storage/images/admin/logo/'.$logo->image)}}" alt="@lang('image')" height="10" style=" border-radius:5px;">
</span>
</a>
<a href="{{route('admin.dashboard')}}" class="logo logo-light">
<span class="logo-sm">
<img src="{{asset('storage/images/admin/logo/'.$logo->image)}}" alt="@lang('image')" height="40" style=" border-radius: 5px;">
</span>
<span class="logo-lg">
<img src="{{asset('storage/images/admin/logo/'.$logo->image)}}" "@lang('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="{{ url('/') }}" class="top_bottom_center"><span style="font-size:18px;padding-right:3px">↱</span> Return Website</a>
@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>
@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();
@endphp
@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;">
{{$notificationCount}}
</div>
@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();
@endphp
<div class="dropdown-divider"></div>
@foreach($data as $notification)
<a href="
@if($notification->type=="inquery")
@php
$pdata = \App\Models\BuyOffer::where('id',$notification->data)->first();
@endphp
@if(isset($pdata))
{{route('user.recommand.offer.foryou.details',$pdata->id)}}
@endif
@endif
@if($notification->type=="new product")
@php
$pdata = \App\Models\Product::where('id',$notification->data)->first();
@endphp
@if(isset($pdata))
{{route('product.view',$pdata->slug)}}
@endif
@endif
@if($notification->type=="order")
{{route('user.order.view',$notification->data)}}
@endif
">
@if($notification->seen==null)
<strong>{{$notification->user->name." ".$notification->message}}</strong>
@else
{{$notification->user->name." ".$notification->message}}
@endif
</a>
<hr>
@endforeach
<div class="dropdown-divider"></div>
<a class="dropdown-item text-primary" href="{{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="{{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"> {{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="{{route('user.profile')}}"><i class="fa fa-user font-size-16 align-middle me-1 text-primary"></i> <span key="t-logout">@lang('My Profile')</span></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-primary" href="{{route('user.password')}}"><i class="fa fa-cog font-size-16 align-middle me-1 text-primary"></i> <span key="t-logout">@lang('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">@lang('Logout')</span></a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</div>
</div>
</div>
</div>
</header>