source: resources/views/layouts/app.blade.php@ 169fcc8

develop
Last change on this file since 169fcc8 was 0df7a93, checked in by beratkjufliju <kufliju@…>, 3 years ago

bug fixes

  • Property mode set to 100644
File size: 9.2 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <meta http-equiv="X-UA-Compatible" content="ie=edge">
7 <meta name="csrf-token" content="{{ csrf_token() }}">
8 <title>@yield('title')</title>
9
10 <!-- Favicon -->
11 <link rel="shortcut icon" href="{{ url('assets/media/images/favicon.png') }}"/>
12
13 <!-- Plugin styles -->
14 <link rel="stylesheet" href="{{ url('vendors/bundle.css') }}" type="text/css">
15
16@yield('head')
17
18<!-- App styles -->
19 <link rel="stylesheet" href="{{ url('assets/css/app.min.css') }}" type="text/css">
20 <link rel="stylesheet" href="{{ url('vendors/lightbox/magnific-popup.css') }}" type="text/css">
21
22 @laravelPWA
23</head>
24<body @if (trim($__env->yieldContent('bodyClass'))) class="@yield('bodyClass')" @endif>
25
26<!-- begin::preloader-->
27<div class="preloader">
28 <div class="preloader-icon"></div>
29</div>
30<!-- end::preloader -->
31
32<!-- BEGIN: Sidebar Group -->
33<div class="sidebar-group">
34
35 <!-- BEGIN: User Menu -->
36 <div class="sidebar" id="user-menu">
37 <div class="py-4 text-center bg-dark">
38 <h5 class="d-flex align-items-center justify-content-center">{{auth()->user()->getFullName()}}</h5>
39 <h6 class="d-flex align-items-center justify-content-center">{{auth()->user()->role->name}}</h6>
40 </div>
41 <div class="card mb-0 card-body shadow-none">
42 <div class="mb-4">
43 <div class="list-group list-group-flush">
44 <a href="{{route("dashboard.settings.index")}}" class="list-group-item p-l-r-0">Settings</a>
45 <a href="javascript:void(0)" onclick="
46 event.preventDefault();
47 document.getElementById('logout-form').submit();
48 " class="list-group-item p-l-r-0 text-danger">Sign Out</a>
49 <form id="logout-form" action="{{ route("auth.logout") }}" method="post">
50 @csrf
51 </form>
52 </div>
53 </div>
54 <div class="mb-4">
55 <h6 class="d-flex justify-content-between">
56 Added departments
57 <span class="float-right">{{ \App\Models\Department::where('user_id', auth()->user()->id)->count() }}</span>
58 </h6>
59 </div>
60 <div class="mb-4">
61 <h6 class="d-flex justify-content-between">
62 Added folders
63 <span class="float-right">{{ \App\Models\Folder::where('user_id', auth()->user()->id)->count() }}</span>
64 </h6>
65 </div>
66 <div class="mb-4">
67 <h6>Email</h6>
68 <p class="text-muted mb-0">{{ auth()->user()->email }}</p>
69 </div>
70 <div class="mb-4">
71 <h6>Phone</h6>
72 <p class="text-muted mb-0">{{ auth()->user()->phone_number }}</p>
73 </div>
74 </div>
75 </div>
76 <!-- END: User Menu -->
77
78</div>
79<!-- END: Sidebar Group -->
80
81<!-- begin::main -->
82<div class="layout-wrapper">
83
84 <!-- begin::header -->
85 <div class="header d-print-none">
86
87 <div class="header-left">
88 <div class="navigation-toggler">
89 <a href="#" data-action="navigation-toggler">
90 <i data-feather="menu"></i>
91 </a>
92 </div>
93 <div class="header-logo">
94 <a href="{{ url('dashboard') }}">
95 <img class="logo" src="{{ url('assets/media/images/logo-small.png') }}" alt="logo">
96 </a>
97 </div>
98 </div>
99
100 <div class="header-body">
101 <div class="header-body-left">
102 <div class="page-title">
103 <h4>@yield('pageTitle')</h4>
104 </div>
105 </div>
106 <div class="header-body-right">
107 <ul class="navbar-nav">
108
109 <!-- begin::header fullscreen -->
110 <li class="nav-item dropdown">
111 <a href="#" class="nav-link" title="Fullscreen" data-toggle="fullscreen">
112 <i class="maximize" data-feather="maximize"></i>
113 <i class="minimize" data-feather="minimize"></i>
114 </a>
115 </li>
116 <!-- end::header fullscreen -->
117
118 <!-- begin::user menu -->
119 <li class="nav-item dropdown">
120 <a href="#" class="nav-link" title="User menu" data-sidebar-target="#user-menu">
121 <span class="mr-2 d-sm-inline d-none">{{auth()->user()->getFullName()}}</span>
122 <figure class="avatar avatar-sm mr-2">
123 @if(auth()->user()->avatar==NULL)
124 <img src="{{ url('assets/media/images/user.png') }}" class="rounded-circle" alt="avatar">
125 @else
126 <img src="{{url('uploads/users/' . auth()->user()->avatar)}}" class="rounded-circle" alt="avatar">
127 @endif
128 </figure>
129 </a>
130 </li>
131 <!-- end::user menu -->
132
133 </ul>
134
135 <!-- begin::mobile header toggler -->
136 <ul class="navbar-nav d-flex align-items-center">
137 <li class="nav-item header-toggler">
138 <a href="#" class="nav-link">
139 <i data-feather="arrow-down"></i>
140 </a>
141 </li>
142 </ul>
143 <!-- end::mobile header toggler -->
144 </div>
145 </div>
146
147 </div>
148 <!-- end::header -->
149
150 <div class="content-wrapper">
151
152 <!-- begin::navigation -->
153 <div class="navigation">
154 <div class="navigation-menu-tab">
155 <ul>
156 <li>
157 <a href="{{ route("dashboard.index") }}" class="nav-link {{ request()->is('dashboard') ? 'active' : '' }}" data-toggle="tooltip"
158 data-placement="right" title="Dashboard">
159 <i data-feather="home"></i>
160 </a>
161 </li>
162 @if(auth()->user()->hasPermission("manage_all_users"))
163 <li>
164 <a href="{{ route("dashboard.users.index") }}" class="nav-link {{ request()->is(['dashboard/users', 'dashboard/users/*']) ? 'active' : '' }}" data-toggle="tooltip"
165 data-placement="right" title="Users">
166 <i data-feather="users"></i>
167 </a>
168 </li>
169 @endif
170 @if(auth()->user()->hasPermission("view_all_departments"))
171 <li>
172 <a href="{{route("dashboard.departments.index")}}" data-toggle="tooltip"
173 data-placement="right" title="Departments">
174 <i data-feather="grid"></i>
175 </a>
176 </li>
177 @endif
178 @if(auth()->user()->hasPermission("view_all_folders"))
179 <li>
180 <a href="{{route("dashboard.folders.index")}}" data-toggle="tooltip"
181 data-placement="right" title="Folders">
182 <i data-feather="folder"></i>
183 </a>
184 </li>
185 @endif
186 @if(auth()->user()->hasPermission("view_all_files"))
187 <li>
188 <a href="{{route("dashboard.files.index")}}" data-toggle="tooltip"
189 data-placement="right" title="Files">
190 <i data-feather="file-text"></i>
191 </a>
192 </li>
193 @endif
194 </ul>
195 </div>
196
197 </div>
198 <!-- end::navigation -->
199
200 <div class="content-body">
201
202 <div class="content">
203
204 @yield('content')
205
206 </div>
207
208 <!-- begin::footer -->
209 <footer class="content-footer">
210 <div>© {{ date('Y') }}<a href="{{route("dashboard.index")}}" target="_blank"> SaveSpace</a></div>
211 <div>
212 </div>
213 </footer>
214 <!-- end::footer -->
215 </div>
216
217 </div>
218
219</div>
220<!-- end::main -->
221
222<!-- Plugin scripts -->
223<script src="{{ url('vendors/bundle.js') }}"></script>
224
225<!-- App scripts -->
226<script src="{{ url('assets/js/app.js') }}"></script>
227<!-- 3. Instantiate clipboard by passing a string selector -->
228<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.8/clipboard.min.js"></script>
229<script>
230 var clipboard = new ClipboardJS('.btn');
231</script>
232<script src="{{ url('vendors/lightbox/jquery.magnific-popup.min.js') }}"></script>
233
234<!-- Isotope -->
235<script src="{{ url('vendors/jquery.isotope.min.js') }}"></script>
236
237<script src="{{ url('assets/js/examples/pages/gallery.js') }}"></script>
238@yield('script')
239
240
241@include("layouts.alert")
242
243</body>
244</html>
Note: See TracBrowser for help on using the repository browser.