source: resources/views/filter.blade.php

main
Last change on this file was 768f473, checked in by bube-ristovska <ristovska725@…>, 5 months ago

Final features

  • Property mode set to 100644
File size: 16.7 KB
RevLine 
[75151c6]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; }
[6b10b67]24 .flex-parent-element {
25 display: flex;
26 width: 50%;
27 }
28
29 .flex-child-element {
30 flex: 1;
[7e9dadd]31 margin: 4px;
[6b10b67]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
[75151c6]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">
[d9c4096]111 @if (Session::get('is_policeman'))
112 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
[768f473]113
[d9c4096]114 @else
115 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
116 <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">
117 <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
118 </button>
119 @endif
[75151c6]120 </div>
121 <nav class="text-white text-base font-semibold pt-3">
122 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
123 <i class="fas fa-tachometer-alt mr-3"></i>
[d9c4096]124 Контролна табла
[75151c6]125 </a>
126 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
127 <i class="fas fa-sticky-note mr-3"></i>
128 Вработени
129 </a>
130 <a href="/filter" class="flex items-center active-nav-link text-white py-4 pl-6 nav-item">
131 <i class="fas fa-table mr-3"></i>
132 Филтрирај граѓани
133 </a>
134 <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
135 <i class="fas fa-align-left mr-3"></i>
136 Случаи
137 </a>
138 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
139 <i class="fas fa-calendar mr-3"></i>
140 Архива
141 </a>
142 </nav>
143 <a href="#" class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
144 <i class="fas fa-arrow-circle-up mr-3"></i>
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">
[249bf91]154 @php
155 $person = DB::select('select * from people where pe_id=:pe_id;', ['pe_id' => Session::get('pe_id')]);
156
157 if (!empty($person)) {
158 $image = $person[0]->picture;
159 } else {
160 $image = null;
161 }
162 @endphp
163
164 <img src="{{ $image }}">
165
[75151c6]166 </button>
167 <button x-show="isOpen" @click="isOpen = false" class="h-full w-full fixed inset-0 cursor-default"></button>
168 <div x-show="isOpen" class="absolute w-32 bg-white rounded-lg shadow-lg py-2 mt-16">
169 <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
170 <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
[cf84baa]171 <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
[75151c6]172 </div>
173 </div>
174 </header>
175
176 <!-- Mobile Header & Nav -->
177 <header x-data="{ isOpen: false }" class="w-full bg-sidebar py-5 px-6 sm:hidden">
178 <div class="flex items-center justify-between">
179 <a href="/" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
180 <button @click="isOpen = !isOpen" class="text-white text-3xl focus:outline-none">
181 <i x-show="!isOpen" class="fas fa-bars"></i>
182 <i x-show="isOpen" class="fas fa-times"></i>
183 </button>
184 </div>
185
186 <!-- Dropdown Nav -->
187 <nav :class="isOpen ? 'flex': 'hidden'" class="flex flex-col pt-4">
188 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
189 <i class="fas fa-tachometer-alt mr-3"></i>
190 Контролна табла
191 </a>
192 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
193 <i class="fas fa-sticky-note mr-3"></i>
194 Вработени
195 </a>
196 <a href="/filter" class="flex items-center active-nav-link text-white py-2 pl-4 nav-item">
197 <i class="fas fa-table mr-3"></i>
198 Филтрирај граѓани
199 </a>
200 <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
201 <i class="fas fa-align-left mr-3"></i>
202 Случаи
203 </a>
204
205 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
206 <i class="fas fa-calendar mr-3"></i>
207 Архива
208 </a>
209 <a href="/help" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
210 <i class="fas fa-cogs mr-3"></i>
211 Помош
212 </a>
213 <a href="/myprofile" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
214 <i class="fas fa-user mr-3"></i>
215 Мој профил
216 </a>
217 <a href="/logout" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
218 <i class="fas fa-sign-out-alt mr-3"></i>
219 Одјави се
220 </a>
221
222 </nav>
223 <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">
224 <i class="fas fa-plus mr-3"></i> Нов извештај
225 </button>
226 </header>
227
228
[6b10b67]229 <main class="w-full flex-grow p-6">
230
[7e9dadd]231 <h1 class="text-3xl text-black pb-6">Филтрирај граѓани</h1>
[6b10b67]232 <div style="width: 600px">
[cf84baa]233 <form action="/filter" method="post">
234 @csrf
[6b10b67]235 <div class="relative">
236 <div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
237 <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">
238 <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"/>
239 </svg>
240 </div>
[cf84baa]241
242 <label for="embg" class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white">Search</label>
[7e9dadd]243 <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="Пребарај матичен број..." >
[6b10b67]244 <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>
245 </div>
[7e9dadd]246 <div class="flex-parent-element">
247 <h3>Возраст</h3>
248
249 <div class="flex-child-element">
250 <label class="container">&lt;18
251 <input type="checkbox" name="age[]" value="0-18">
252 <span class="checkmark"></span>
253 </label>
254
255 <label class="container">19-25
256 <input type="checkbox" name="age[]" value="19-25">
257 <span class="checkmark"></span>
258 </label>
259
260 <label class="container">26-60
261 <input type="checkbox" name="age[]" value="26-60">
262 <span class="checkmark"></span>
263 </label>
264
265 <label class="container">60+
266 <input type="checkbox" name="age[]" value="60-120">
267 <span class="checkmark"></span>
268 </label>
269 </div>
270
271 <h3>Пол</h3>
272 <div class="flex-child-element">
273 <label class="container">М
274 <input type="checkbox" name="gender[]" value="M">
275 <span class="checkmark"></span>
276 </label>
277
278 <label class="container">Ж
279 <input type="checkbox" name="gender[]" value="F">
280 <span class="checkmark"></span>
281 </label>
282 </div>
283
284 </div>
[6b10b67]285 </form>
286 </div>
287
[7e9dadd]288{{-- <div class="flex-parent-element">--}}
289{{-- <h3>Возраст</h3>--}}
290
291{{-- <div class="flex-child-element"> <label class="container">&lt;18 год--}}
292{{-- <input type="checkbox" checked="checked">--}}
293{{-- <span class="checkmark"></span>--}}
294{{-- </label>--}}
295
296{{-- <label class="container"> 19-25--}}
297{{-- <input type="checkbox">--}}
298{{-- <span class="checkmark"></span>--}}
299{{-- </label>--}}
300
301{{-- <label class="container">26-60--}}
302{{-- <input type="checkbox">--}}
303{{-- <span class="checkmark"></span>--}}
304{{-- </label>--}}
305
306{{-- <label class="container">60+--}}
307{{-- <input type="checkbox">--}}
308{{-- <span class="checkmark"></span>--}}
309{{-- </label>--}}
310{{-- </div>--}}
311{{-- <h3>Пол</h3>--}}
312{{-- <div class="flex-child-element">--}}
313{{-- <label class="container">М--}}
314{{-- <input type="checkbox" checked="checked">--}}
315{{-- <span class="checkmark"></span>--}}
316{{-- </label>--}}
317
318{{-- <label class="container">Ж--}}
319{{-- <input type="checkbox">--}}
320{{-- <span class="checkmark"></span>--}}
321{{-- </label>--}}
322{{-- </div>--}}
323{{-- </div>--}}
[6b10b67]324
325
326
[cf84baa]327 <div class="bg-white overflow-auto max-h-96">
[6b10b67]328 <table class="min-w-full bg-white">
329 <thead class="bg-gray-800 text-white">
330 <tr>
331 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">ЕМБГ</th>
[92df8cd]332 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Име</th>
333 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">Презиме</th>
334 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Пол</th>
335 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Адреса</th>
336 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Држава</th>
337 <th class=" text-left py-3 px-4 uppercase font-semibold text-sm">Националност</th>
[6b10b67]338 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">Телефон</th>
339 </tr>
340 </thead>
341 <tbody class="text-gray-700">
[cf84baa]342
343 @foreach($peoples as $people)
344 <tr>
[92df8cd]345 <td class=" text-left py-3 px-3">{{$people->embg}}</td>
346 <td class=" text-left py-3 px-3">{{$people->first_name}}</td>
347 <td class=" text-left py-3 px-3">{{$people->last_name}}</td>
348 <td class=" text-left py-3 px-3"> {{ $people->gender === 'F' ? 'Ж' : 'М' }}</td>
349 <td class=" text-left py-3 px-3">{{$people->address}}</td>
350 <td class=" text-left py-3 px-3">{{$people->country}}</td>
351 <td class=" text-left py-3 px-3">{{$people->nationality}}</td>
352 <td class="text-left py-3 px-3"><a class="hover:text-blue-500" href="tel:622322662">{{$people->contact}}</a></td>
[cf84baa]353 </tr>
354 @endforeach
[6b10b67]355 </tbody>
356 </table>
357 </div>
358 </main>
[75151c6]359</div>
360
[6b10b67]361
[75151c6]362<!-- AlpineJS -->
363<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
364<!-- Font Awesome -->
365<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>
366<!-- ChartJS -->
367<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
368
369</body>
370</html>
Note: See TracBrowser for help on using the repository browser.