master_template/resources/views/hulaki_khabar/partials/header.blade.php

283 lines
15 KiB
PHP
Raw Normal View History

2024-06-13 15:17:05 +00:00
<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>
2024-06-18 05:46:51 +00:00
<a href="<?php echo isset(SITEVARS->fb) ? SITEVARS->fb : ''; ?>" class="facebook" target="_blank">
2024-06-13 15:17:05 +00:00
<i class='bx bxl-facebook'></i>
</a>
</li>
<li>
2024-06-18 05:46:51 +00:00
<a href="<?php echo isset(SITEVARS->insta) ? SITEVARS->insta : ''; ?>" class="pinterest" target="_blank">
2024-06-13 15:17:05 +00:00
<i class='bx bxl-instagram'></i>
</a>
</li>
<li>
2024-06-18 05:46:51 +00:00
<a href="<?php echo isset(SITEVARS->twitter) ? SITEVARS->twitter : ''; ?>" class="twitter" target="_blank">
2024-06-13 15:17:05 +00:00
<i class='bx bxl-twitter'></i>
</a>
</li>
<li>
2024-06-18 05:46:51 +00:00
<a href="<?php echo isset(SITEVARS->youtube) ? SITEVARS->youtube : ''; ?>" class="linkedin" target="_blank">
2024-06-13 15:17:05 +00:00
<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>
2024-06-20 12:22:40 +00:00
@if (!auth()->check())
<li>
<i class='bx bx-user'></i>
<a href="{{ route('userLogin') }}">लगइन</a>
</li>
@else
<li>
<i class='bx bx-user'></i>
<a href="#"><span class="fs-10">{{ auth()->user()->name }}</span> </a>
<i class='bx bx-power-off'></i>
</li>
@endif
2024-06-13 15:17:05 +00:00
</ul>
</div>
</div>
</div>
</div>
<!-- End Top Header Area -->
<!-- Start Navbar Area -->
<div class="main-responsive-nav">
<div class="container">
<div class="logo">
2024-06-20 12:22:40 +00:00
<a href="{{ route('home') }}">
2024-06-18 18:40:14 +00:00
<img src="<?php echo asset(SITEVARS->primary_logo); ?>" class="black-logo" alt="image">
<img src="<?php echo asset(SITEVARS->secondary_logo); ?>" class="white-logo" alt="image">
2024-06-13 15:17:05 +00:00
</a>
</div>
</div>
<div class="col-lg-6">
2024-06-18 18:40:14 +00:00
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 1)
2024-06-20 12:22:40 +00:00
<img src="{{ asset($ad->thumb) }}" alt="image">
2024-06-18 18:40:14 +00:00
@endif
@endforeach
@endif
2024-06-13 15:17:05 +00:00
</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">
2024-06-20 12:22:40 +00:00
<a class="navbar-brand" href="{{ route('home') }}">
2024-06-18 10:41:58 +00:00
<img src="<?php echo asset(SITEVARS->primary_logo); ?>" class="black-logo" alt="image"
2024-06-13 15:17:05 +00:00
style="margin-left: -20px;max-width: 350px; height: auto; display: block;">
2024-06-18 10:41:58 +00:00
<img src="<?php echo asset(SITEVARS->secondary_logo); ?>" class="white-logo" alt="image" style="margin-left: -20px;">
2024-06-13 15:17:05 +00:00
</a>
</nav>
</div>
<div class="col-lg-6">
<nav class="navbar navbar-expand-sm navbar-light">
<a class="navbar-brand">
2024-06-18 18:40:14 +00:00
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 1)
<img src="{{ asset($ad->thumb) }}" class="black-logo" alt="image"
style="margin-left: -250px;max-width: 880px; height: auto; display: block;">
@endif
@endforeach
@endif
2024-06-13 15:17:05 +00:00
</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>
2024-06-18 05:46:51 +00:00
<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>
2024-06-13 15:17:05 +00:00
</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">
2024-06-18 05:46:51 +00:00
@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
2024-06-18 10:41:58 +00:00
@case('tbl_videos')
@php
2024-06-18 18:40:14 +00:00
$subMenu->link = route('showVideos'); @endphp
2024-06-18 10:41:58 +00:00
@break
2024-06-18 05:46:51 +00:00
@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
2024-06-13 15:17:05 +00:00
</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 -->