source: resources/views/layouts/app.blade.php@ dfae77e

Last change on this file since dfae77e was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 2 years ago
  • Initial commit;
  • Property mode set to 100644
File size: 6.6 KB
Line 
1<!doctype html>
2<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
3<head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6
7 <!-- CSRF Token -->
8 <meta name="csrf-token" content="{{ csrf_token() }}">
9
10 <title>{{ config('app.name', 'Clapsify') }}</title>
11
12 <!-- Fonts -->
13 <link rel="dns-prefetch" href="//fonts.gstatic.com">
14 <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
15
16 <!-- Styles -->
17 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
18 integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
19 <link href="{{ mix('css/main-app.css') }}" rel="stylesheet">
20
21 <style>
22 td {
23 word-break: keep-all;
24 }
25 </style>
26
27 <!-- Scripts -->
28 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
29 integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ=="
30 crossorigin="anonymous" referrerpolicy="no-referrer"></script>
31 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
32 integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
33 crossorigin="anonymous"></script>
34 <script src="{{ mix('js/app.js') }}"></script>
35</head>
36<body>
37<div id="app">
38 <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
39 <div class="container">
40 <a class="navbar-brand" href="{{ url('/') }}">
41 {{ config('app.name', 'Laravel') }}
42 </a>
43 <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
44 data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
45 aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
46 <span class="navbar-toggler-icon"></span>
47 </button>
48
49 <div class="collapse navbar-collapse" id="navbarSupportedContent">
50 <!-- Left Side Of Navbar -->
51 <ul class="navbar-nav me-auto">
52 <li class="nav-item">
53 <a href="/explore" class="nav-link {{ (request()->is('explore')) ? 'active' : '' }}">Explore</a>
54 </li>
55 @auth
56 @if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value)
57 <li class="nav-item">
58 <a href="/offers" class="nav-link {{ (request()->is('offers*')) ? 'active' : '' }}">Offers</a>
59 </li>
60 <li class="nav-item">
61 <a href="/events" class="nav-link {{ (request()->is('events*')) ? 'active' : '' }}">Events</a>
62 </li>
63 <li class="nav-item">
64 <a href="/payments" class="nav-link {{ (request()->is('payments*')) ? 'active' : '' }}">Payments</a>
65 </li>
66 @endif
67
68 @if(Auth::user()->type === \App\Enum\UserType::ARTIST->value)
69 <li class="nav-item">
70 <a href="/offers" class="nav-link {{ (request()->is('offers*')) ? 'active' : '' }}">Offers</a>
71 </li>
72 <li class="nav-item">
73 <a href="/payments" class="nav-link {{ (request()->is('payments*')) ? 'active' : '' }}">Payments</a>
74 </li>
75 @endif
76
77 @if(Auth::user()->type === \App\Enum\UserType::MANAGER->value)
78 <li class="nav-item">
79 <a href="/artists" class="nav-link {{ (request()->is('artists*')) ? 'active' : '' }}">Artists</a>
80 </li>
81 @endif
82 @endauth
83 </ul>
84
85 <!-- Right Side Of Navbar -->
86 <ul class="navbar-nav ms-auto">
87 <!-- Authentication Links -->
88 @guest
89 @if (Route::has('login'))
90 <li class="nav-item">
91 <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
92 </li>
93 @endif
94
95 @if (Route::has('register'))
96 <li class="nav-item">
97 <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
98 </li>
99 @endif
100 @else
101 <li class="nav-item dropdown">
102 <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button"
103 data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
104 {{ Auth::user()->name }}
105 </a>
106
107 <div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
108 <a href="/{{ Auth::user()->username }}" class="dropdown-item">
109 My Profile
110 </a>
111
112 <a class="dropdown-item" href="{{ route('logout') }}"
113 onclick="event.preventDefault();
114 document.getElementById('logout-form').submit();">
115 {{ __('Logout') }}
116 </a>
117
118 <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
119 @csrf
120 </form>
121 </div>
122 </li>
123 @endguest
124 </ul>
125 </div>
126 </div>
127 </nav>
128
129 <main class="py-4">
130 @include('includes.flash-messages')
131
132 @auth
133 @if (Auth::user()->type === \App\Enum\UserType::MANAGER->value)
134 <div class="container">
135 <div class="alert alert-info alert-block alert-dismissible fade show">
136 <strong>Viewing as manager</strong>
137 </div>
138 </div>
139 @endif
140 @endauth
141
142 @yield('content')
143 </main>
144</div>
145</body>
146</html>
Note: See TracBrowser for help on using the repository browser.