source: resources/views/layouts/app.blade.php@ 6b95845

develop
Last change on this file since 6b95845 was d795fa6, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added validation to blades

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