PHP Classes

File: resources/views/layouts/navbar.blade.php

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Devs Hunt   resources/views/layouts/navbar.blade.php   Download  
File: resources/views/layouts/navbar.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Devs Hunt
Manage courses and student enrolment
Author: By
Last change:
Date: 1 month ago
Size: 15,735 bytes
 

Contents

Class file image Download
<!-- Start Navbar --> <nav class="bg-white shadow p-2.5 sticky top-0 z-50"> <div class="container mx-auto"> <div class="flex justify-between"> <div class="flex justify-center items-center"> <div> <a href="{{ route('index') }}"> <img src="{{ asset('images/logo.png') }}" alt="" class="w-36"> </a> </div> <div class="hidden md:block ml-8 group relative"> <img src="{{ asset('images/icons/category-icon.svg') }}" alt="" class="w-8 h-8 cursor-pointer" data-dropdown-toggle="dropdown"> {{-- <div class="bg-white hidden absolute group-hover:block min-w-[200px]"> <ul class="list-none"> <li> <a href="#" class="block bg-white hover:bg-slate-50 py-4 px-8 hover:text-red-500"> HTML </a> </li> <li> <a href="#" class="block bg-white hover:bg-slate-50 py-4 px-8 hover:text-red-500"> CSS </a> </li> <li> <a href="#" class="block bg-white hover:bg-slate-50 py-4 px-8 hover:text-red-500"> Bootstrap </a> </li> </ul> </div> --}} <div id="dropdown" class="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"> <ul class="py-1 text-sm text-gray-700 dark:text-gray-200" aria-labelledby="multiLevelDropdownButton"> @foreach ($categories as $parentCategory) <li> <button id="doubleDropdownButton{{ $parentCategory->id }}" data-dropdown-toggle="doubleDropdown{{ $parentCategory->id }}" data-dropdown-placement="right-start" type="button" class="flex justify-between items-center py-2 px-4 w-full hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"> {{ $parentCategory->name }} @if (count($parentCategory->child)) <svg aria-hidden="true" class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path> </svg> @endif </button> @if (count($parentCategory->child)) <div id="doubleDropdown{{ $parentCategory->id }}" class="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"> <ul class="py-1 text-sm text-gray-700 dark:text-gray-200" aria-labelledby="doubleDropdownButton{{ $parentCategory->id }}"> @foreach ($parentCategory->child as $child1) <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"> {{ $child1->name }} </a> </li> @endforeach </ul> </div> @endif </li> @endforeach {{-- <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Dashboard</a> </li> --}} {{-- <li> <button id="doubleDropdownButton" data-dropdown-toggle="doubleDropdown" data-dropdown-placement="right-start" type="button" class="flex justify-between items-center py-2 px-4 w-full hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Dropdown<svg aria-hidden="true" class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path> </svg></button> <div id="doubleDropdown" class="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"> <ul class="py-1 text-sm text-gray-700 dark:text-gray-200" aria-labelledby="doubleDropdownButton"> <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Overview</a> </li> <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">My downloads</a> </li> <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Billing</a> </li> <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Rewards</a> </li> </ul> </div> </li> <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Earnings</a> </li> <li> <a href="#" class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Sign out</a> </li> --}} </ul> </div> </div> <div class="hidden md:block ml-16 relative"> <span class="absolute top-2.5 left-4"> <i class="fa-solid fa-magnifying-glass"></i> </span> <input type="search" class="transition w-full min-w-[300px] text-xs rounded-md p-3 pl-12 bg-slate-100 outline-none outline-1 focus:outline-red-300 border border-gray-100" placeholder="Search for Tuts, Videos, Tutors etc.."> </div> </div> <div class="flex justify-center items-center pr-4 md:pr-0"> <ul class="list-none"> <li class="inline-block mx-3 sm:mx-4 md:mx-6 relative group"> <a href="#" class="text-xl text-gray-500 group-hover:opacity-75"> <span class="absolute -top-2 bg-red-500 -right-3.5 text-white pl-1.5 text-sm rounded-full h-5 w-5"> 2 </span> <i class="fa-solid fa-cart-arrow-down"></i> </a> </li> <li class="inline-block mx-3 sm:mx-4 md:mx-6 relative group"> <a href="#" class="text-xl text-gray-500 group-hover:opacity-75"> <span class="absolute -top-2 bg-red-500 -right-3.5 text-white pl-1.5 text-sm rounded-full h-5 w-5"> 2 </span> <i class="fa-solid fa-envelope"></i> </a> <div class="hidden group-hover:block absolute shadow w-64 p-4 bg-white"> <div class="flex p-2 border-b border-slate-200"> <div class="mr-2"> <i class="fa-solid fa-user-circle text-lg p-2"></i> </div> <div> <h3 class="text-gray-500 font-normal">Maniruzzaman Akash</h3> <p class="text-gray-400 text-xs font-thin"> Lorem ipsum dolor sit amet consectetur adipisicing elit. </p> <p class="text-gray-400 font-thin text-[10px] mt-2"> 2 min ago </p> </div> </div> <div class="flex p-2"> <div class="mr-2"> <i class="fa-solid fa-user-circle text-lg p-2"></i> </div> <div> <h3 class="text-gray-500 font-normal">Maniruzzaman Akash</h3> <p class="text-gray-400 text-xs font-thin"> Lorem ipsum dolor sit amet consectetur adipisicing elit. </p> <p class="text-gray-400 font-thin text-[10px] mt-2"> 2 min ago </p> </div> </div> </div> </li> <li class="inline-block mx-3 sm:mx-4 md:mx-6 relative group"> <a href="#" class="text-xl text-gray-500 group-hover:opacity-75"> <span class="absolute -top-2 bg-red-500 -right-3.5 text-white pl-1.5 text-sm rounded-full h-5 w-5"> 2 </span> <i class="fa-solid fa-bell"></i> </a> </li> </ul> <div class="hidden md:block -mt-3 mx-3 group"> @auth <a href="{{ route('dashboard') }}" class="text-xl text-gray-500 group-hover:opacity-75 rounded-full h-5 w-5 shadow py-1.5 px-2.5"> <i class="fa-solid fa-user"></i> </a> @else <a href="{{ route('login') }}" title="Login" class="text-xl text-gray-500 group-hover:opacity-75 rounded-full h-5 w-5 shadow py-1.5 px-2.5"> <i class="fa-solid fa-sign-in"></i> </a> @endauth </div> </div> </div> <div class="absolute top-1 right-4 cursor-pointer mt-5"> <span class="md:hidden navbar-toggle text-slate-900"> <i class="fa-solid fa-bars-staggered" id="toggle-icon"></i> </span> </div> </div> <div class="mobile-navbar hidden h-[102vh] bg-white absolute top-0 left-0 text-left shadow overflow-y"> <div class="text-center pt-2 flex items-center mt-3"> <a href="{{ route('index') }}" class="m-0 mx-auto"> <img src="{{ asset('images/logo.png') }}" alt="" class="w-36"> </a> </div> <div class="p-3"> <div class="relative"> <span class="absolute top-2.5 left-4"> <i class="fa-solid fa-magnifying-glass"></i> </span> <input type="search" class="transition w-full text-xs rounded-md p-3 pl-12 bg-slate-100 outline-none outline-1 focus:outline-red-300" placeholder="Search for Tuts, Videos, Tutors etc.."> </div> <ul class="mt-3 list-none"> <li class="py-3"> <i class="fa-solid fa-cube text-gray-400 mr-2"></i> Categories </li> <li class="transition p-3 cursor-pointer hover:bg-slate-100 mb-1 hover:opacity-80 border-b border-slate-100"> <a href="#"> <i class="fa-solid fa-chevron-right text-xs mr-4"></i> HTML </a> </li> <li class="transition p-3 cursor-pointer hover:bg-slate-100 mb-1 hover:opacity-80 border-b border-slate-100"> <a href="#"> <i class="fa-solid fa-chevron-right text-xs mr-4"></i> CSS </a> </li> <li class="transition p-3 cursor-pointer hover:bg-slate-100 mb-1 hover:opacity-80 border-b border-slate-100"> <a href="#"> <i class="fa-solid fa-chevron-right text-xs mr-4"></i> Tailwind CSS </a> </li> <li class="transition p-3 cursor-pointer hover:bg-slate-100 mb-1 hover:opacity-80 border-b border-slate-100"> <a href="#"> <i class="fa-solid fa-chevron-right text-xs mr-4"></i> Bootstrap CSS </a> </li> </ul> </div> </div> </nav> <!-- End Navbar -->