source: resources/views/layouts/app.blade.php@ 24a616f

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

added documents crud, added last_seen_to_user, edited views

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