master_template/resources/views/hulaki_khabar/partials/header.blade.php
2024-06-18 16:26:58 +05:45

264 lines
14 KiB
PHP

<div class="top-header-area bg-color">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6">
<ul class="top-header-social">
<li>
<a href="<?php echo isset(SITEVARS->fb) ? SITEVARS->fb : ''; ?>" class="facebook" target="_blank">
<i class='bx bxl-facebook'></i>
</a>
</li>
<li>
<a href="<?php echo isset(SITEVARS->insta) ? SITEVARS->insta : ''; ?>" class="pinterest" target="_blank">
<i class='bx bxl-instagram'></i>
</a>
</li>
<li>
<a href="<?php echo isset(SITEVARS->twitter) ? SITEVARS->twitter : ''; ?>" class="twitter" target="_blank">
<i class='bx bxl-twitter'></i>
</a>
</li>
<li>
<a href="<?php echo isset(SITEVARS->youtube) ? SITEVARS->youtube : ''; ?>" class="linkedin" target="_blank">
<i class='bx bxl-youtube'></i>
</a>
</li>
</ul>
</div>
<div class="col-lg-6">
<ul class="top-header-others">
<li>
<div id="show-hidden-menu" class="pradesh-tab">
<i class='bx bx-location-plus'></i>
<a href="javascript:">प्रदेश</a>
</div>
<div class="login">
<a href="javascript:" data-toggle="modal" data-target="#exampleModal">
<i class="fas fa-user"></i>
</a>
</div>
</li>
<li>
<i class='bx bx-user'></i>
<a href="login.php">लगइन</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- End Top Header Area -->
<!-- Start Navbar Area -->
<div class="main-responsive-nav">
<div class="container">
<div class="logo">
<a href="index.php">
<img src="{{ asset('hulka/assets/img/logo-1.png') }}" class="black-logo" alt="image">
<img src="{{ asset('hulka/assets/img/logo-3.png') }}" class="white-logo" alt="image">
</a>
</div>
</div>
<div class="col-lg-6">
<img src="{{ asset('hulka/assets/img/add/ads1.gif') }}" alt="image">
<img src="{{ asset('hulka/assets/img/add/ads1.gif') }}" alt="image">
</div>
</div>
<div class="main-navbar">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6">
<nav class="navbar navbar-expand-sm navbar-light">
<a class="navbar-brand" href="index.php">
<img src="<?php echo asset(SITEVARS->primary_logo); ?>" class="black-logo" alt="image"
style="margin-left: -20px;max-width: 350px; height: auto; display: block;">
<img src="<?php echo asset(SITEVARS->secondary_logo); ?>" class="white-logo" alt="image" style="margin-left: -20px;">
</a>
</nav>
</div>
<div class="col-lg-6">
<nav class="navbar navbar-expand-sm navbar-light">
<a class="navbar-brand">
<img src="{{ asset('hulaki/assets/img/add/ads10.gif') }}" class="black-logo" alt="image"
style="margin-left: -250px;max-width: 880px; height: auto; display: block;">
</a>
</nav>
</div>
</div>
</div>
</div>
<div class="top-header-area bg-color">
<div class="container">
<div class="row align-item-center">
<div class="col-lg-12">
<div class="hidden-menu" style="display: none;">
<ul>
<li><a href="{{ route('showProvinces', ['id' => 1]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p1.jpg') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 2]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p2.jpg') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 3]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p3.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 4]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p4.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 5]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p5.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 6]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p6.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 7]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p7.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="navbar-area navbar-two">
<div class="top-header-area">
<div class="container">
<div class="row align-items-center">
<div class="main-navbar">
<div class="container">
<nav class="navbar navbar-expand-md navbar-light">
<div class="collapse navbar-collapse mean-menu" id="navbarSupportedContent"
style="margin-left: -5%;">
<ul class="navbar-nav">
@if ($headerMenuItems->isNotEmpty())
@foreach ($headerMenuItems as $menuItem)
@switch($menuItem->type)
@case('tbl_newscategories')
@php
$menuItem->link = route('single', [
'alias' => \App\Models\Newscategories::find($menuItem->ref)
->alias,
]);
@endphp
@break
@case('tbl_news_type')
@php
$menuItem->link = route('showInternational', [
'alias' => \App\Models\News_type::find($menuItem->ref)
->alias,
]);
@endphp
@break
@default
@php
$menuItem->link = config('app.url') . $menuItem->ref;
@endphp
@break
@endswitch
@if ($menuItem->children->isNotEmpty())
<li class="nav-item">
<a href="#" class="nav-link">
{{ $menuItem->title }}
<i class='bx bx-chevron-down'></i>
</a>
@if ($menuItem->children->isNotEmpty())
<ul class="dropdown-menu">
@foreach ($menuItem->children as $subMenu)
@switch($subMenu->type)
@case('tbl_newscategories')
@php
$subMenu->link = route('single', [
'alias' => \App\Models\Newscategories::find(
$subMenu->ref,
)->alias,
]);
@endphp
@break
@case('tbl_news_type')
@php
$menuItem->link = route(
'showInternational',
[
'alias' => \App\Models\News_type::find(
$subMenu->ref,
)->alias,
],
);
@endphp
@break
@case('tbl_videos')
@php
$subMenu->link = route('showVideos') @endphp
@break
@default
@php
$subMenu->link =
config('app.url') . $menuItem->ref;
@endphp
@break
@endswitch
<li class="nav-item">
<a href="{{ $subMenu->link }}" class="nav-link">
{{ $subMenu->title }}
</a>
</li>
@endforeach
<ul>
@endif
</li>
@else
<li class="nav-item">
<a href="{{ $menuItem->link }}" class="nav-link">
{{ $menuItem->title }}
</a>
</li>
@endif
@endforeach
@endif
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
<div class="others-option-for-responsive">
<div class="container">
<div class="dot-menu">
<div class="inner">
<div class="circle circle-one"></div>
<div class="circle circle-two"></div>
<div class="circle circle-three"></div>
</div>
</div>
<div class="container">
<div class="option-inner">
<div class="others-options d-flex align-items-center">
<div class="option-item">
<form class="search-box">
<input type="text" class="form-control" placeholder="खोज्नुहोस्">
<button type="submit"><i class='bx bx-search'></i></button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Navbar Area -->