91 lines
4.5 KiB
PHP
91 lines
4.5 KiB
PHP
<!doctype html>
|
|
<html lang="en">
|
|
@include("frontend.head")
|
|
<body>
|
|
|
|
<header class="position-relative">
|
|
<nav
|
|
class="navbar border-0 border-bottom justify-content-between bg-white p-0">
|
|
<div class="box-logo">
|
|
<a href="{{ route('home') }}" class="navbar-brand d-flex align-items-center px-4 px-lg-5">
|
|
<img src="{{ setting('logo') }}" style="width: 150px" alt="{{ setting('company') }}">
|
|
</a>
|
|
</div>
|
|
|
|
<div class="box-action d-inline row d-flex justify-content-between px-lg-5 text-right">
|
|
|
|
<div class="box-action__button col d-flex align-items-center">
|
|
@if(session('admin_login_for_customer'))
|
|
<a href="{{ route('customer.Logout') }}">
|
|
<i class="fas fa-backward"></i>
|
|
</a>
|
|
@endif
|
|
<div class="btn-minicart position-relative">
|
|
<a href="{{ route('cart') }}" title="Giỏ hàng ">
|
|
<img src="{{ asset('file/icon_minicart.png') }}" alt="Giỏ hàng">
|
|
<span class="cart_count cart_number">
|
|
@php
|
|
$cartItems = session('cart.user_' . (user()?->id ?? 0), []);
|
|
@endphp
|
|
{{ count($cartItems) }}
|
|
</span>
|
|
</a>
|
|
</div>
|
|
<a href="{{ route('shop') }}" style="width: 180px" class="btn bg-color__brand text-white bg-gradient">
|
|
<i class="fas fa-cart-plus"></i>
|
|
Đăng ký dịch vụ
|
|
</a>
|
|
</div>
|
|
@if(auth()->guard('users')->user())
|
|
<div class="box-nav__customer col navbar">
|
|
<div class="nav-link align-items-center d-flex dropdown-toggle" id="navbarDropdownMenuLink"
|
|
role="button"
|
|
data-bs-toggle="dropdown" aria-expanded="false">
|
|
<div class="box-avatar">
|
|
<img class="avatar-default"
|
|
src="{{ auth()->guard('users')->user()->avatar ?
|
|
url(auth()->guard('users')->user()->avatar) :
|
|
asset("images/avatar.png") }}"
|
|
alt="{{ auth()->guard('users')->user()->firstname . ' ' .auth()->guard('users')->user()->lastname }}">
|
|
</div>
|
|
<div class="box-information text-black-50">
|
|
<span>
|
|
{{ auth()->guard('users')->user()->firstname . ' ' .auth()->guard('users')->user()->lastname }}
|
|
</span>
|
|
<br>
|
|
<small>Số dư: {{ number_format(auth()->guard('users')->user()->credit,0,',','.') }}
|
|
đ</small>
|
|
</div>
|
|
</div>
|
|
<ul class="dropdown-menu w-90 left-10" aria-labelledby="navbarDropdownMenuLink">
|
|
<li><a class="dropdown-item text-black-50" href="{{ route("user.information") }}"><i
|
|
class="fas fa-user"></i> Chi tiết tài khoản</a></li>
|
|
<li><a class="dropdown-item text-black-50" href="{{ route("user.email") }}"><i
|
|
class="fas fa-envelope"></i> Lịch sử email</a></li>
|
|
<li><a class="dropdown-item text-black-50" href="{{ route("frontend.customer.log") }}"><i
|
|
class="fas fa-history"></i> Nhật ký hoạt động</a></li>
|
|
<li><a class="dropdown-item text-black-50" href="{{ route("user.password") }}"><i
|
|
class="fas fa-lock"></i> Mật khẩu</a></li>
|
|
<li><a class="dropdown-item text-black-50" href="{{ route("user.logout") }}"><i
|
|
class="fas fa-power-off"></i> Đăng xuất</a></li>
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<div class="wrapper position-relative">
|
|
@include("frontend.sidebar")
|
|
<div class="main content-wrapper d-flex flex-column align-items-stretch flex-shrink-0 bg-white p-3 px-lg-5">
|
|
<h1>{{ $title }}</h1>
|
|
@include("alerts")
|
|
@yield("content")
|
|
</div>
|
|
@include("frontend.footer")
|
|
</div>
|
|
@include("frontend.script")
|
|
|
|
</body>
|
|
</html>
|