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

170 lines
8.5 KiB
PHP
Raw Permalink Normal View History

2024-06-13 15:17:05 +00:00
<section class="footer-area pt-100 pb-70">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="single-footer-widget">
<a href="index.php">
2024-06-18 05:46:51 +00:00
{{-- {{ asset('hulaki/assets/img/logo.gif') }} --}}
<img src="<?php echo isset(SITEVARS->primary_logo) ? asset(SITEVARS->primary_logo) : (isset(SITEVARS->secondary_logo) ? asset(SITEVARS->secondary_logo) : ''); ?>" alt="image">
2024-06-13 15:17:05 +00:00
</a>
2024-06-18 05:46:51 +00:00
<p> <?php echo isset(SITEVARS->description) ? SITEVARS->description : ''; ?></p>
2024-06-13 15:17:05 +00:00
<ul class="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="instagram" 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="youtube" target="_blank">
2024-06-13 15:17:05 +00:00
<i class='bx bxl-youtube'></i>
</a>
</li>
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="single-footer-widget" style=" margin-left: 80px; margin-right: 10px;">
<h2>हुलाकी खबर </h2>
<ul class="useful-links-list">
2024-06-18 05:46:51 +00:00
@if ($footerMenuItems->isNotEmpty())
@foreach ($footerMenuItems->take(5) as $menuItems)
@switch($menuItems->type)
@case('tbl_articles')
@php
$article = \App\Models\Articles::find($menuItems->ref);
if ($menuItems->alias == 'hamara-tama') {
$menuItems->link =
route('showAboutus', ['alias' => $article->alias]) . '#team';
} elseif (
in_array($menuItems->alias, [
'anaya-parashanaharaka-lga',
'gapanayata-nata',
])
) {
$menuItems->link = route('showArtilce', ['alias' => $article->alias]);
} else {
$menuItems->link = route('showAboutus', ['alias' => $article->alias]);
}
@endphp
@break
@default
@php
$menuItems->link = config('app.url') . $menuItems->ref;
@endphp
@break
@endswitch
<li>
<a href="{{ $menuItems->link }}">{{ $menuItems->title }} </a>
</li>
@endforeach
@endif
{{-- <li>
<a href="{{ route('showAboutus',['alias'=>'about-us']) }}">हाम्रो बारे </a>
2024-06-13 15:17:05 +00:00
</li>
<li>
2024-06-18 05:46:51 +00:00
<a href="{{ route('showAboutus',['alias'=>'about-us']) }}#team">हाम्रो टिम</a>
2024-06-13 15:17:05 +00:00
</li>
<li>
2024-06-18 05:46:51 +00:00
<a href="{{ route('showArtilce', ['alias' => 'faqs']) }}">अन्य प्रश्नहरुको लागी</a>
2024-06-13 15:17:05 +00:00
</li>
<li>
2024-06-18 05:46:51 +00:00
<a href="{{ route('contact') }}">सम्पर्क</a>
2024-06-13 15:17:05 +00:00
</li>
<li>
2024-06-18 05:46:51 +00:00
<a href="{{ route('showArtilce', ['alias' => 'privacy-policy']) }}">गोपनियता नीति</a>
</li> --}}
2024-06-13 15:17:05 +00:00
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6" style="margin-right: -40px;">
<div class="single-footer-widget">
<h2>समाचार </h2>
<ul class="useful-links-list">
2024-06-18 05:46:51 +00:00
@if ($footerMenuItems->isNotEmpty())
@foreach ($footerMenuItems->skip(5) as $item)
@switch($item->type)
@case('tbl_newscategories')
@php
$category = \App\Models\Newscategories::find($item->ref);
if ($category) {
$item->link = route('single', ['alias' => $category->alias]);
}
@endphp
@break
@case('tbl_news_type')
@php
$newsType = \App\Models\News_type::find($item->ref);
if ($newsType) {
$item->link = route('showInternational', ['alias' => $newsType->alias]);
}
@endphp
@break
@endswitch
<li>
<a href="{{ $item->link }}">{{ $item->title }}</a>
</li>
@endforeach
@endif
2024-06-13 15:17:05 +00:00
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6" style="margin-left: -60px;">
<div class="single-footer-widget">
<h2>पछिल्लो खबर </h2>
2024-06-18 18:40:14 +00:00
@foreach ($latestNews as $item)
2024-06-18 05:46:51 +00:00
<div class="post-content">
<div class="row align-items-center">
<div class="col-md-4">
<div class="post-image">
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
2024-06-13 15:17:05 +00:00
</div>
2024-06-18 05:46:51 +00:00
<div class="col-md-8">
<h4>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h4>
2024-06-13 15:17:05 +00:00
</div>
</div>
</div>
2024-06-18 05:46:51 +00:00
@endforeach
2024-06-13 15:17:05 +00:00
</div>
</div>
</div>
</div>
</section>
<!-- End Footer Area -->
<!-- Start Copy Right Area -->
<div class="copyright-area">
<div class="container">
<div class="copyright-area-content">
<p>
2024-06-18 05:46:51 +00:00
<?php echo SITEVARS->copyright_text; ?>
2024-06-13 15:17:05 +00:00
</p>
</div>
</div>
</div>
<!-- End Copy Right Area -->
<!-- Start Go Top Area -->
<div class="go-top">
<i class='bx bx-up-arrow-alt'></i>
</div>
<!-- End Go Top Area -->