source: resources/views/filter.blade.php@ 2bd3041

main
Last change on this file since 2bd3041 was 7e9dadd, checked in by bube-ristovska <ristovska725@…>, 9 months ago

Finalized phase 5

  • Property mode set to 100644
File size: 16.4 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: 4px;
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="Пребарај матичен број..." >
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 <div class="flex-parent-element">
236 <h3>Возраст</h3>
237
238 <div class="flex-child-element">
239 <label class="container">&lt;18
240 <input type="checkbox" name="age[]" value="0-18">
241 <span class="checkmark"></span>
242 </label>
243
244 <label class="container">19-25
245 <input type="checkbox" name="age[]" value="19-25">
246 <span class="checkmark"></span>
247 </label>
248
249 <label class="container">26-60
250 <input type="checkbox" name="age[]" value="26-60">
251 <span class="checkmark"></span>
252 </label>
253
254 <label class="container">60+
255 <input type="checkbox" name="age[]" value="60-120">
256 <span class="checkmark"></span>
257 </label>
258 </div>
259
260 <h3>Пол</h3>
261 <div class="flex-child-element">
262 <label class="container">М
263 <input type="checkbox" name="gender[]" value="M">
264 <span class="checkmark"></span>
265 </label>
266
267 <label class="container">Ж
268 <input type="checkbox" name="gender[]" value="F">
269 <span class="checkmark"></span>
270 </label>
271 </div>
272
273 </div>
274 </form>
275 </div>
276
277{{-- <div class="flex-parent-element">--}}
278{{-- <h3>Возраст</h3>--}}
279
280{{-- <div class="flex-child-element"> <label class="container">&lt;18 год--}}
281{{-- <input type="checkbox" checked="checked">--}}
282{{-- <span class="checkmark"></span>--}}
283{{-- </label>--}}
284
285{{-- <label class="container"> 19-25--}}
286{{-- <input type="checkbox">--}}
287{{-- <span class="checkmark"></span>--}}
288{{-- </label>--}}
289
290{{-- <label class="container">26-60--}}
291{{-- <input type="checkbox">--}}
292{{-- <span class="checkmark"></span>--}}
293{{-- </label>--}}
294
295{{-- <label class="container">60+--}}
296{{-- <input type="checkbox">--}}
297{{-- <span class="checkmark"></span>--}}
298{{-- </label>--}}
299{{-- </div>--}}
300{{-- <h3>Пол</h3>--}}
301{{-- <div class="flex-child-element">--}}
302{{-- <label class="container">М--}}
303{{-- <input type="checkbox" checked="checked">--}}
304{{-- <span class="checkmark"></span>--}}
305{{-- </label>--}}
306
307{{-- <label class="container">Ж--}}
308{{-- <input type="checkbox">--}}
309{{-- <span class="checkmark"></span>--}}
310{{-- </label>--}}
311{{-- </div>--}}
312{{-- </div>--}}
313
314
315
316 <div class="bg-white overflow-auto max-h-96">
317 <table class="min-w-full bg-white">
318 <thead class="bg-gray-800 text-white">
319 <tr>
320 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">ЕМБГ</th>
321 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Име</th>
322 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">Презиме</th>
323 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Пол</th>
324 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Адреса</th>
325 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Држава</th>
326 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Националност</th>
327 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">Телефон</th>
328 </tr>
329 </thead>
330 <tbody class="text-gray-700">
331
332 @foreach($peoples as $people)
333 <tr>
334 <td class=" text-left py-3 px-3">{{$people->embg}}</td>
335 <td class=" text-left py-3 px-3">{{$people->first_name}}</td>
336 <td class=" text-left py-3 px-3">{{$people->last_name}}</td>
337 <td class=" text-left py-3 px-3"> {{ $people->gender === 'F' ? 'Ж' : 'М' }}</td>
338 <td class=" text-left py-3 px-3">{{$people->address}}</td>
339 <td class=" text-left py-3 px-3">{{$people->country}}</td>
340 <td class=" text-left py-3 px-3">{{$people->nationality}}</td>
341 <td class="text-left py-3 px-3"><a class="hover:text-blue-500" href="tel:622322662">{{$people->contact}}</a></td>
342 </tr>
343 @endforeach
344 </tbody>
345 </table>
346 </div>
347 </main>
348</div>
349
350
351<!-- AlpineJS -->
352<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
353<!-- Font Awesome -->
354<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>
355<!-- ChartJS -->
356<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
357
358</body>
359</html>
Note: See TracBrowser for help on using the repository browser.