Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/ecommerce/resources/views/frontend/layouts/ |
<header class="header shop">
<!-- Topbar -->
<div class="topbar">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-12 col-12">
<!-- Top Left -->
<div class="top-left">
<ul class="list-main">
<li><i class="ti-headphone-alt"></i>@foreach ($settings as $data) {{ $data->phone }} @endforeach</li>
<li><i class="ti-email"></i> @foreach ($settings as $data) {{ $data->email }} @endforeach</li>
</ul>
</div>
<!--/ End Top Left -->
</div>
<div class="col-lg-6 col-md-12 col-12">
<!-- Top Right -->
<div class="right-content">
<ul class="list-main">
<li><i class="ti-location-pin"></i> <a href="{{ route('order.track') }}">Track Order</a>
</li>
{{-- <li><i class="ti-alarm-clock"></i> <a href="#">Daily deal</a></li> --}}
@auth
@if (Auth::user()->role == 'admin')
<li><i class="ti-user"></i> <a href="{{ route('admin') }}"
target="_blank">Dashboard</a></li>
@else
<li><i class="ti-user"></i> <a href="{{ route('user') }}"
target="_blank">Dashboard</a></li>
@endif
<li><i class="ti-power-off"></i> <a href="{{ route('user.logout') }}">Logout</a></li>
@else
<li><i class="ti-power-off"></i><a href="{{ route('login.form') }}">Login /</a> <a
href="{{ route('register.form') }}">Register</a></li>
@endauth
</ul>
</div>
<!-- End Top Right -->
</div>
</div>
</div>
</div>
<!-- End Topbar -->
<div class="middle-inner">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-12">
<!-- Logo -->
<div class="logo" style="position: relative;">
<a href="{{ route('home') }}">
<img style="width: 18%;" src="@foreach ($settings as $data){{ url($data->logo) }} @endforeach" alt="logo">
<span style="font-size: 30px; font-weight: bold;margin-left: 6px;">EtiqaFinans</span>
<span style="position: absolute;bottom: -5px;left: 58px;letter-spacing: 6px;">Own with ease</span>
</a>
</div>
<!--/ End Logo -->
<!-- Search Form -->
<div class="search-top">
<div class="top-search"><a href="#0"><i class="ti-search"></i></a></div>
<!-- Search Form -->
<div class="search-top">
<form class="search-form">
<input type="text" placeholder="Search here..." name="search">
<button value="search" type="submit"><i class="ti-search"></i></button>
</form>
</div>
<!--/ End Search Form -->
</div>
<!--/ End Search Form -->
<div class="mobile-nav"></div>
</div>
<div class="col-lg-7 col-md-6 col-12">
<div class="search-bar-top">
<div class="search-bar">
<select>
<option>All Category</option>
@foreach (Helper::getAllCategory() as $cat)
<option>{{ $cat->title }}</option>
@endforeach
</select>
<form method="POST" action="{{ route('product.search') }}">
@csrf
<input name="search" placeholder="Search Products Here....." type="search">
<button class="btnn" type="submit"><i class="ti-search"></i></button>
</form>
</div>
</div>
</div>
<div class="col-lg-2 col-md-3 col-12">
<div class="right-bar">
<!-- Search Form -->
<div class="sinlge-bar shopping">
@php
$total_prod = 0;
$total_amount = 0;
@endphp
@if (session('wishlist'))
@foreach (session('wishlist') as $wishlist_items)
@php
$total_prod += $wishlist_items['quantity'];
$total_amount += $wishlist_items['amount'];
@endphp
@endforeach
@endif
<a href="{{ route('wishlist') }}" class="single-icon"><i class="fa fa-heart-o"></i>
<span class="total-count font-value-serif">{{ Helper::wishlistCount() }}</span></a>
<!-- Shopping Item -->
@auth
<div class="shopping-item">
<div class="dropdown-cart-header">
<span>{{ count($inWishProducts) }} Items</span>
<a href="{{ route('wishlist') }}">View Wishlist</a>
</div>
<ul class="shopping-list pl-0">
@foreach ($inWishProducts as $data)
@php
$photo = explode(',', $data->product['photo']);
@endphp
<li>
<a href="{{ route('wishlist-delete', $data->id) }}" class="remove"
title="Remove this item"><i class="fa fa-remove"></i></a>
<a class="cart-img" href="#"><img src="{{ Helper::imagePath($photo[0]) }}"
alt="{{ $photo[0] }}"></a>
<h4><a href="{{ route('product-detail', $data->product['slug']) }}"
target="_blank">{{ $data->product['title'] }}</a></h4>
<p class="quantity">{{ $data->quantity }} x - <span
class="amount">{!! config('shop.currency_symbol') !!} {{ number_format($data->price, 2) }}</span>
</p>
</li>
@endforeach
</ul>
<div class="bottom">
<div class="total">
<span>Total</span>
<span
class="total-amount">{!! config('shop.currency_symbol') !!} {{ number_format(Helper::totalWishlistPrice(), 2) }}</span>
</div>
<a href="{{ route('cart') }}" class="btn animate">Cart</a>
</div>
</div>
@endauth
<!--/ End Shopping Item -->
</div>
{{-- <div class="sinlge-bar">
<a href="{{route('wishlist')}}" class="single-icon"><i class="fa fa-heart-o" aria-hidden="true"></i></a>
</div> --}}
<div class="sinlge-bar shopping">
<a href="{{ route('cart') }}" class="single-icon"><i class="ti-bag"></i> <span
class="total-count">{{ Helper::cartCount() }}</span></a>
<!-- Shopping Item -->
@auth
<div class="shopping-item">
<div class="dropdown-cart-header">
<span>{{ count($inCartProducts) }} Items</span>
<a href="{{ route('cart') }}">View Cart</a>
</div>
<ul class="shopping-list">
@foreach ($inCartProducts as $data)
@php
$photo = explode(',', $data->product['photo']);
@endphp
<li>
<a href="{{ route('cart-delete', $data->id) }}" class="remove"
title="Remove this item"><i class="fa fa-remove"></i></a>
<a class="cart-img" href="#"><img src="{{ Helper::imagePath($photo[0]) }}"
alt="{{ $photo[0] }}"></a>
<h4><a href="{{ route('product-detail', $data->product['slug']) }}"
target="_blank">{{ $data->product['title'] }}</a></h4>
<p class="quantity">{{ $data->quantity }} x - <span
class="amount">{!! config('shop.currency_symbol') !!} {{ number_format($data->price, 2) }}</span>
</p>
</li>
@endforeach
</ul>
<div class="bottom">
<div class="total">
<span>Total</span>
<span
class="total-amount">{!! config('shop.currency_symbol') !!} {{ number_format(Helper::totalCartPrice(), 2) }}</span>
</div>
<a href="{{ route('checkout') }}" class="btn animate">Checkout</a>
</div>
</div>
@endauth
<!--/ End Shopping Item -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Header Inner -->
<div class="header-inner">
<div class="container">
<div class="cat-nav-head">
<div class="row">
<div class="col-lg-12 col-12">
<div class="menu-area">
<!-- Main Menu -->
<nav class="navbar navbar-expand-lg">
<div class="navbar-collapse">
<div class="nav-inner">
<ul class="nav main-menu menu navbar-nav">
<li class="{{ Request::path() == 'home' ? 'active' : '' }}"><a
href="{{ route('home') }}">Home</a></li>
<li class="{{ Request::path() == 'about-us' ? 'active' : '' }}"><a
href="{{ route('about-us') }}">About Us</a></li>
<li class="@if (Request::path() == 'product-grids' || Request::path() == 'product-lists') active @endif"><a
href="{{ route('product-lists') }}">Products</a><span
class="new">New</span></li>
{{ Helper::getHeaderCategory() }}
<li class="{{ Request::path() == 'blog' ? 'active' : '' }}"><a
href="{{ route('blog') }}">Blog</a></li>
<li class="{{ Request::path() == 'contact' ? 'active' : '' }}"><a
href="{{ route('contact') }}">Contact Us</a></li>
</ul>
</div>
</div>
</nav>
<!--/ End Main Menu -->
</div>
</div>
</div>
</div>
</div>
</div>
<!--/ End Header Inner -->
</header>