master_template/resources/views/hulaki_khabar/partials/footer.blade.php
2024-06-18 11:31:51 +05:45

170 lines
8.5 KiB
PHP

<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">
{{-- {{ 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">
</a>
<p> <?php echo isset(SITEVARS->description) ? SITEVARS->description : ''; ?></p>
<ul class="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="instagram" 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="youtube" target="_blank">
<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">
@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>
</li>
<li>
<a href="{{ route('showAboutus',['alias'=>'about-us']) }}#team">हाम्रो टिम</a>
</li>
<li>
<a href="{{ route('showArtilce', ['alias' => 'faqs']) }}">अन्य प्रश्नहरुको लागी</a>
</li>
<li>
<a href="{{ route('contact') }}">सम्पर्क</a>
</li>
<li>
<a href="{{ route('showArtilce', ['alias' => 'privacy-policy']) }}">गोपनियता नीति</a>
</li> --}}
</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">
@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
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6" style="margin-left: -60px;">
<div class="single-footer-widget">
<h2>पछिल्लो खबर </h2>
@foreach ($recentNews as $item)
<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>
</div>
<div class="col-md-8">
<h4>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h4>
</div>
</div>
</div>
@endforeach
</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>
<?php echo SITEVARS->copyright_text; ?>
</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 -->