source: resources/views/filter.blade.php@ d9c4096

main
Last change on this file since d9c4096 was d9c4096, checked in by bube-ristovska <ristovska725@…>, 11 months ago

Bug with embg

  • Property mode set to 100644
File size: 14.5 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 <title>Laravel</title>
8
9 <!-- Fonts -->
10 <link rel="preconnect" href="https://fonts.bunny.net">
11 <link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet" />
12
13 <!-- Styles -->
14 <style>
15 @import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');
16 .font-family-karla { font-family: karla; }
17 .bg-sidebar { background: #3d68ff; }
18 .cta-btn { color: #3d68ff; }
19 .upgrade-btn { background: #1947ee; }
20 .upgrade-btn:hover { background: #0038fd; }
21 .active-nav-link { background: #1947ee; }
22 .nav-item:hover { background: #1947ee; }
23 .account-link:hover { background: #3d68ff; }
24 .flex-parent-element {
25 display: flex;
26 width: 50%;
27 }
28
29 .flex-child-element {
30 flex: 1;
31 margin: 10px;
32 }
33
34 .flex-child-element:first-child {
35 margin-right: 20px;
36 }
37 .container {
38 display: block;
39 position: relative;
40 padding-left: 35px;
41 margin-bottom: 12px;
42 cursor: pointer;
43 font-size: 22px;
44 -webkit-user-select: none;
45 -moz-user-select: none;
46 -ms-user-select: none;
47 user-select: none;
48 }
49
50 /* Hide the browser's default checkbox */
51 .container input {
52 position: absolute;
53 opacity: 0;
54 cursor: pointer;
55 height: 0;
56 width: 0;
57 }
58
59 /* Create a custom checkbox */
60 .checkmark {
61 position: absolute;
62 top: 0;
63 left: 0;
64 height: 25px;
65 width: 25px;
66 background-color: #eee;
67 }
68
69 /* On mouse-over, add a grey background color */
70 .container:hover input ~ .checkmark {
71 background-color: #ccc;
72 }
73
74 /* When the checkbox is checked, add a blue background */
75 .container input:checked ~ .checkmark {
76 background-color: #2196F3;
77 }
78
79 /* Create the checkmark/indicator (hidden when not checked) */
80 .checkmark:after {
81 content: "";
82 position: absolute;
83 display: none;
84 }
85
86 /* Show the checkmark when checked */
87 .container input:checked ~ .checkmark:after {
88 display: block;
89 }
90
91 /* Style the checkmark/indicator */
92 .container .checkmark:after {
93 left: 9px;
94 top: 5px;
95 width: 5px;
96 height: 10px;
97 border: solid white;
98 border-width: 0 3px 3px 0;
99 -webkit-transform: rotate(45deg);
100 -ms-transform: rotate(45deg);
101 transform: rotate(45deg);
102 }
103
104 </style>
105 <script src="https://cdn.tailwindcss.com"></script>
106
107</head>
108<body class="bg-gray-100 font-family-karla flex">
109<aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
110 <div class="p-6">
111 @if (Session::get('is_policeman'))
112 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
113 @else
114 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
115 <button class="w-full bg-white cta-btn font-semibold py-2 mt-5 rounded-br-lg rounded-bl-lg rounded-tr-lg shadow-lg hover:shadow-xl hover:bg-gray-300 flex items-center justify-center">
116 <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
117 </button>
118 @endif
119 </div>
120 <nav class="text-white text-base font-semibold pt-3">
121 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
122 <i class="fas fa-tachometer-alt mr-3"></i>
123 Контролна табла
124 </a>
125 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
126 <i class="fas fa-sticky-note mr-3"></i>
127 Вработени
128 </a>
129 <a href="/filter" class="flex items-center active-nav-link text-white py-4 pl-6 nav-item">
130 <i class="fas fa-table mr-3"></i>
131 Филтрирај граѓани
132 </a>
133 <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
134 <i class="fas fa-align-left mr-3"></i>
135 Случаи
136 </a>
137 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
138 <i class="fas fa-calendar mr-3"></i>
139 Архива
140 </a>
141 </nav>
142 <a href="#" class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
143 <i class="fas fa-arrow-circle-up mr-3"></i>
144 Поставки за профил
145 </a>
146</aside>
147
148<div class="w-full flex flex-col h-screen overflow-y-hidden">
149 <!-- Desktop Header -->
150 <header class="w-full items-center bg-white py-2 px-6 hidden sm:flex">
151 <div class="w-1/2"></div>
152 <div x-data="{ isOpen: false }" class="relative w-1/2 flex justify-end">
153 <button @click="isOpen = !isOpen" class="realtive z-10 w-12 h-12 rounded-full overflow-hidden border-4 border-gray-400 hover:border-gray-300 focus:border-gray-300 focus:outline-none">
154 <img src="https://source.unsplash.com/uJ8LNVCBjFQ/400x400">
155 </button>
156 <button x-show="isOpen" @click="isOpen = false" class="h-full w-full fixed inset-0 cursor-default"></button>
157 <div x-show="isOpen" class="absolute w-32 bg-white rounded-lg shadow-lg py-2 mt-16">
158 <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
159 <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
160 <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
161 </div>
162 </div>
163 </header>
164
165 <!-- Mobile Header & Nav -->
166 <header x-data="{ isOpen: false }" class="w-full bg-sidebar py-5 px-6 sm:hidden">
167 <div class="flex items-center justify-between">
168 <a href="/" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
169 <button @click="isOpen = !isOpen" class="text-white text-3xl focus:outline-none">
170 <i x-show="!isOpen" class="fas fa-bars"></i>
171 <i x-show="isOpen" class="fas fa-times"></i>
172 </button>
173 </div>
174
175 <!-- Dropdown Nav -->
176 <nav :class="isOpen ? 'flex': 'hidden'" class="flex flex-col pt-4">
177 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
178 <i class="fas fa-tachometer-alt mr-3"></i>
179 Контролна табла
180 </a>
181 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
182 <i class="fas fa-sticky-note mr-3"></i>
183 Вработени
184 </a>
185 <a href="/filter" class="flex items-center active-nav-link text-white py-2 pl-4 nav-item">
186 <i class="fas fa-table mr-3"></i>
187 Филтрирај граѓани
188 </a>
189 <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
190 <i class="fas fa-align-left mr-3"></i>
191 Случаи
192 </a>
193
194 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
195 <i class="fas fa-calendar mr-3"></i>
196 Архива
197 </a>
198 <a href="/help" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
199 <i class="fas fa-cogs mr-3"></i>
200 Помош
201 </a>
202 <a href="/myprofile" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
203 <i class="fas fa-user mr-3"></i>
204 Мој профил
205 </a>
206 <a href="/logout" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
207 <i class="fas fa-sign-out-alt mr-3"></i>
208 Одјави се
209 </a>
210
211 </nav>
212 <button class="w-full bg-white cta-btn font-semibold py-2 mt-5 rounded-br-lg rounded-bl-lg rounded-tr-lg shadow-lg hover:shadow-xl hover:bg-gray-300 flex items-center justify-center">
213 <i class="fas fa-plus mr-3"></i> Нов извештај
214 </button>
215 </header>
216
217
218 <main class="w-full flex-grow p-6">
219
220 <h1 class="text-3xl text-black pb-6">Контролна табла</h1>
221 <div style="width: 600px">
222 <form action="/filter" method="post">
223 @csrf
224 <div class="relative">
225 <div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
226 <svg class="w-4 h-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
227 <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/>
228 </svg>
229 </div>
230
231 <label for="embg" class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white">Search</label>
232 <input type="text" id="embg" name="embg" class="block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Пребарај матичен број..." required>
233 <button type="submit" class="text-white absolute end-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Search</button>
234 </div>
235 </form>
236 </div>
237
238 <div class="flex-parent-element">
239 <h3>Возраст</h3>
240
241 <div class="flex-child-element"> <label class="container">&lt;18 год
242 <input type="checkbox" checked="checked">
243 <span class="checkmark"></span>
244 </label>
245
246 <label class="container"> 19-25
247 <input type="checkbox">
248 <span class="checkmark"></span>
249 </label>
250
251 <label class="container">26-60
252 <input type="checkbox">
253 <span class="checkmark"></span>
254 </label>
255
256 <label class="container">60+
257 <input type="checkbox">
258 <span class="checkmark"></span>
259 </label>
260 </div>
261 <h3>Пол</h3>
262 <div class="flex-child-element">
263 <label class="container">М
264 <input type="checkbox" checked="checked">
265 <span class="checkmark"></span>
266 </label>
267
268 <label class="container">Ж
269 <input type="checkbox">
270 <span class="checkmark"></span>
271 </label>
272 </div>
273 </div>
274
275
276
277 <div class="bg-white overflow-auto max-h-96">
278 <table class="min-w-full bg-white">
279 <thead class="bg-gray-800 text-white">
280 <tr>
281 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">ЕМБГ</th>
282 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Име</th>
283 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Презиме</th>
284 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Пол</th>
285 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Адреса</th>
286 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Држава</th>
287 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Националност</th>
288 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">Телефон</th>
289 </tr>
290 </thead>
291 <tbody class="text-gray-700">
292
293 @foreach($peoples as $people)
294 <tr>
295 <td class="w-1/3 text-left py-3 px-4">{{$people->embg}}</td>
296 <td class="w-1/3 text-left py-3 px-4">{{$people->first_name}}</td>
297 <td class="w-1/3 text-left py-3 px-4">{{$people->last_name}}</td>
298 <td class="w-1/3 text-left py-3 px-4">{{$people->gender}}</td>
299 <td class="w-1/3 text-left py-3 px-4">{{$people->address}}</td>
300 <td class="w-1/3 text-left py-3 px-4">{{$people->country}}</td>
301 <td class="w-1/3 text-left py-3 px-4">{{$people->nationality}}</td>
302 <td class="text-left py-3 px-4"><a class="hover:text-blue-500" href="tel:622322662">{{$people->contact}}</a></td>
303 </tr>
304 @endforeach
305 </tbody>
306 </table>
307 </div>
308 </div>
309 </main>
310</div>
311
312
313<!-- AlpineJS -->
314<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
315<!-- Font Awesome -->
316<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js" integrity="sha256-KzZiKy0DWYsnwMF+X1DvQngQ2/FxF7MF3Ff72XcpuPs=" crossorigin="anonymous"></script>
317<!-- ChartJS -->
318<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
319
320</body>
321</html>
Note: See TracBrowser for help on using the repository browser.