1- <nav class =" navbar navbar-expand-lg" style =" background-color : #e3f2fd ;" >
2- <div class =" container-md" >
3- <a class =" navbar-brand" href =" {{ route (' main.index' ) } }" >
4- <strong >My Personal Blog</strong >
5- </a >
6- <button class =" navbar-toggler" type =" button" data-bs-toggle =" collapse" data-bs-target =" #navbarSupportedContent"
7- aria-controls =" navbarSupportedContent" aria-expanded =" false" aria-label =" Toggle navigation" >
8- <span class =" navbar-toggler-icon" ></span >
9- </button >
10- <div class =" collapse navbar-collapse" id =" navbarSupportedContent" >
11- <ul class =" navbar-nav me-auto mb-2 mb-lg-0" >
12- <li class =" nav-item" >
13- <a class =" nav-link" href =" {{ route (' main.index' ) } }" >Home</a >
14- </li >
15- <li class =" nav-item" >
16- <a class =" nav-link" href =" {{ route (' about.index' ) } }" >About author</a >
17- </li >
18- <li class =" nav-item" >
19- <a class =" nav-link" href =" {{ route (' contact.index' ) } }" >Contacts</a >
20- </li >
21- </ul >
22- @auth ()
23- <a class =" btn btn-outline-success" href =" {{ route (' personal.main.index' ) } }" >Profile</a >
24- @endauth
25- @guest ()
26- <a class =" btn btn-outline-success" href =" {{ route (' personal.main.index' ) } }" >Log in</a >
27- @endguest
1+ <div class =" container" >
2+ <header class =" border-bottom lh-1 py-3" >
3+ <div class =" row flex-nowrap justify-content-between align-items-center" >
4+ <div class =" col-4" ></div >
5+ <div class =" col-4 text-center" >
6+ <a class =" blog-header-logo text-body-emphasis text-decoration-none" href =" {{ route (' main.index' ) } }"
7+ style =" font-family : ' Playfair Display' , serif ; font-weight : 700 ; font-size : 1.95rem ;" >
8+ My Personal Blog
9+ </a >
10+ </div >
11+ <div class =" col-4 d-flex justify-content-end align-items-center" >
12+ @auth
13+ <div class =" dropdown" >
14+ <a class =" btn btn-sm btn-outline-primary dropdown-toggle gap-2 rounded-pill px-4 d-flex align-items-center"
15+ href =" #" role =" button" data-bs-toggle =" dropdown" aria-expanded =" false" >
16+ <i class =" bi bi-person-circle" ></i >
17+ {{ Auth:: user ()-> name } }
18+ </a >
19+ <ul class =" dropdown-menu dropdown-menu-end shadow-lg rounded-3" >
20+ <li >
21+ <a class =" dropdown-item d-flex align-items-center gap-2"
22+ href =" {{ route (' personal.main.index' ) } }" >
23+ <i class =" bi bi-person" ></i > Profile
24+ </a >
25+ </li >
26+ <li >
27+ <hr class =" dropdown-divider" >
28+ </li >
29+ <li >
30+ <form method =" POST" action =" {{ route (' logout' ) } }" >
31+ @csrf
32+ <button type =" submit" class =" dropdown-item d-flex align-items-center gap-2" >
33+ <i class =" bi bi-box-arrow-right" ></i > Logout
34+ </button >
35+ </form >
36+ </li >
37+ </ul >
38+ </div >
39+ @else
40+ <a class =" btn btn-sm bg-primary text-white gap-2 rounded-pill px-4 d-flex align-items-center"
41+ href =" {{ route (' login' ) } }" >
42+ <i class =" bi bi-box-arrow-in-right" ></i > Log in
43+ </a >
44+ @endauth
45+ </div >
2846 </div >
47+ </header >
48+
49+ <div class =" nav-scroller py-1 mb-3 border-bottom" >
50+ <nav class =" nav nav-underline justify-content-between" >
51+ <a class =" nav-item nav-link link-body-emphasis" href =" {{ route (' main.index' ) } }" >Home</a >
52+ <a class =" nav-item nav-link link-body-emphasis" href =" {{ route (' about.index' ) } }" >About author</a >
53+ <a class =" nav-item nav-link link-body-emphasis" href =" {{ route (' contact.index' ) } }" >Contact</a >
54+ </nav >
2955 </div >
30- </nav >
56+ </div >
0 commit comments