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

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

Added querries half done

  • Property mode set to 100644
File size: 14.2 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 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
112 <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">
113 <i class="fas fa-plus mr-3"></i> Додади полицаец
114 </button>
115 </div>
116 <nav class="text-white text-base font-semibold pt-3">
117 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
118 <i class="fas fa-tachometer-alt mr-3"></i>
119 Сортирај граѓани
120 </a>
121 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
122 <i class="fas fa-sticky-note mr-3"></i>
123 Вработени
124 </a>
125 <a href="/filter" class="flex items-center active-nav-link text-white py-4 pl-6 nav-item">
126 <i class="fas fa-table mr-3"></i>
127 Филтрирај граѓани
128 </a>
129 <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
130 <i class="fas fa-align-left mr-3"></i>
131 Случаи
132 </a>
133 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
134 <i class="fas fa-calendar mr-3"></i>
135 Архива
136 </a>
137 </nav>
138 <a href="#" class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
139 <i class="fas fa-arrow-circle-up mr-3"></i>
140 Поставки за профил
141 </a>
142</aside>
143
144<div class="w-full flex flex-col h-screen overflow-y-hidden">
145 <!-- Desktop Header -->
146 <header class="w-full items-center bg-white py-2 px-6 hidden sm:flex">
147 <div class="w-1/2"></div>
148 <div x-data="{ isOpen: false }" class="relative w-1/2 flex justify-end">
149 <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">
150 <img src="https://source.unsplash.com/uJ8LNVCBjFQ/400x400">
151 </button>
152 <button x-show="isOpen" @click="isOpen = false" class="h-full w-full fixed inset-0 cursor-default"></button>
153 <div x-show="isOpen" class="absolute w-32 bg-white rounded-lg shadow-lg py-2 mt-16">
154 <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
155 <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
156 <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
157 </div>
158 </div>
159 </header>
160
161 <!-- Mobile Header & Nav -->
162 <header x-data="{ isOpen: false }" class="w-full bg-sidebar py-5 px-6 sm:hidden">
163 <div class="flex items-center justify-between">
164 <a href="/" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
165 <button @click="isOpen = !isOpen" class="text-white text-3xl focus:outline-none">
166 <i x-show="!isOpen" class="fas fa-bars"></i>
167 <i x-show="isOpen" class="fas fa-times"></i>
168 </button>
169 </div>
170
171 <!-- Dropdown Nav -->
172 <nav :class="isOpen ? 'flex': 'hidden'" class="flex flex-col pt-4">
173 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
174 <i class="fas fa-tachometer-alt mr-3"></i>
175 Контролна табла
176 </a>
177 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
178 <i class="fas fa-sticky-note mr-3"></i>
179 Вработени
180 </a>
181 <a href="/filter" class="flex items-center active-nav-link text-white py-2 pl-4 nav-item">
182 <i class="fas fa-table mr-3"></i>
183 Филтрирај граѓани
184 </a>
185 <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
186 <i class="fas fa-align-left mr-3"></i>
187 Случаи
188 </a>
189
190 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
191 <i class="fas fa-calendar mr-3"></i>
192 Архива
193 </a>
194 <a href="/help" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
195 <i class="fas fa-cogs mr-3"></i>
196 Помош
197 </a>
198 <a href="/myprofile" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
199 <i class="fas fa-user mr-3"></i>
200 Мој профил
201 </a>
202 <a href="/logout" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
203 <i class="fas fa-sign-out-alt mr-3"></i>
204 Одјави се
205 </a>
206
207 </nav>
208 <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">
209 <i class="fas fa-plus mr-3"></i> Нов извештај
210 </button>
211 </header>
212
213
214 <main class="w-full flex-grow p-6">
215
216 <h1 class="text-3xl text-black pb-6">Контролна табла</h1>
217 <div style="width: 600px">
218 <form action="/filter" method="post">
219 @csrf
220 <div class="relative">
221 <div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
222 <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">
223 <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"/>
224 </svg>
225 </div>
226
227 <label for="embg" class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white">Search</label>
228 <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>
229 <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>
230 </div>
231 </form>
232 </div>
233
234 <div class="flex-parent-element">
235 <h3>Возраст</h3>
236
237 <div class="flex-child-element"> <label class="container">&lt;18 год
238 <input type="checkbox" checked="checked">
239 <span class="checkmark"></span>
240 </label>
241
242 <label class="container"> 19-25
243 <input type="checkbox">
244 <span class="checkmark"></span>
245 </label>
246
247 <label class="container">26-60
248 <input type="checkbox">
249 <span class="checkmark"></span>
250 </label>
251
252 <label class="container">60+
253 <input type="checkbox">
254 <span class="checkmark"></span>
255 </label>
256 </div>
257 <h3>Пол</h3>
258 <div class="flex-child-element">
259 <label class="container">М
260 <input type="checkbox" checked="checked">
261 <span class="checkmark"></span>
262 </label>
263
264 <label class="container">Ж
265 <input type="checkbox">
266 <span class="checkmark"></span>
267 </label>
268 </div>
269 </div>
270
271
272
273 <div class="bg-white overflow-auto max-h-96">
274 <table class="min-w-full bg-white">
275 <thead class="bg-gray-800 text-white">
276 <tr>
277 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">ЕМБГ</th>
278 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Име</th>
279 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Презиме</th>
280 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Пол</th>
281 <th class="w-1/3 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="text-left py-3 px-4 uppercase font-semibold text-sm">Телефон</th>
285 </tr>
286 </thead>
287 <tbody class="text-gray-700">
288
289 @foreach($peoples as $people)
290 <tr>
291 <td class="w-1/3 text-left py-3 px-4">{{$people->embg}}</td>
292 <td class="w-1/3 text-left py-3 px-4">{{$people->first_name}}</td>
293 <td class="w-1/3 text-left py-3 px-4">{{$people->last_name}}</td>
294 <td class="w-1/3 text-left py-3 px-4">{{$people->gender}}</td>
295 <td class="w-1/3 text-left py-3 px-4">{{$people->address}}</td>
296 <td class="w-1/3 text-left py-3 px-4">{{$people->country}}</td>
297 <td class="w-1/3 text-left py-3 px-4">{{$people->nationality}}</td>
298 <td class="text-left py-3 px-4"><a class="hover:text-blue-500" href="tel:622322662">{{$people->contact}}</a></td>
299 </tr>
300 @endforeach
301 </tbody>
302 </table>
303 </div>
304 </div>
305 </main>
306</div>
307
308
309<!-- AlpineJS -->
310<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
311<!-- Font Awesome -->
312<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>
313<!-- ChartJS -->
314<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
315
316</body>
317</html>
Note: See TracBrowser for help on using the repository browser.