0% found this document useful (0 votes)
6 views

Header

The document contains code for a header section of a website. It includes a logo image, navigation menu items for home, pages, plans, blog, and contact. The menu items are generated dynamically based on pages in the database with the appropriate status. A toggle button is included for the mobile navigation menu.

Uploaded by

Go Ideas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Header

The document contains code for a header section of a website. It includes a logo image, navigation menu items for home, pages, plans, blog, and contact. The menu items are generated dynamically based on pages in the database with the appropriate status. A toggle button is included for the mobile navigation menu.

Uploaded by

Go Ideas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

-- Header -->

<header class="header-primary {{ request()->routeIs('user.login') || request()->routeIs('user.register') ?


'header-primary--sticky' : 'header-primary--fixed' }}">

<div class="container">

<div class="header-primary__content">

<nav class="navbar navbar-expand-lg navbar-dark">

<!-- Logo -->

<a href="{{ route('home') }}" class="logo">

<img

src="{{ asset('assets/images/logoIcon/logo.png') }}"

alt="site-logo"

class="img-fluid logo__is"

/>

</a>

<!-- Logo End -->

<button

class="navbar-toggler"

type="button"

data-bs-toggle="collapse"

data-bs-target="#navbarToggle"

aria-expanded="false"

>

<span class="menu-toggle"></span>

</button>

</nav>

<div class="collapse navbar-collapse" id="navbarToggle">

<div class="nav-container">

<!-- Primary Menu -->

<ul class="list primary-menu justify-content-lg-end">


<li class="nav-item">

<a href="{{ route('home') }}" class="primary-


menu__link">@lang('Home')</a>

</li>

@php

$pages = App\Models\Page::where('tempname',$activeTemplate)-
>where('is_default',Status::NO)->get();

@endphp

@foreach($pages as $page)

@if($page->slug != 'home' && $page->slug != 'blog' && $page->slug != 'contact')

<li>

<a href="{{ route('pages',$page-


>slug) }}" class="primary-menu__link">{{ __($page->name) }}</a>

</li>

@endif

@endforeach

<li>

<a href="{{ route('plans') }}" class="primary-


menu__link">@lang('Plans')</a>

</li>

<li>

<a href="{{ route('blog') }}" class="primary-


menu__link">@lang('Blog')</a>

</li>

<li class="nav-item">

<a href="{{ route('contact') }}" class="primary-


menu__link">@lang('Contact')</a>

</li>

</ul>

<!-- Primary Menu End -->

You might also like