source: resources/views/case.blade.php@ 249bf91

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

New feature - details for employee

  • Property mode set to 100644
File size: 23.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
17 .font-family-karla {
18 font-family: karla;
19 }
20
21 .bg-sidebar {
22 background: #3d68ff;
23 }
24
25 .cta-btn {
26 color: #3d68ff;
27 }
28
29 .upgrade-btn {
30 background: #1947ee;
31 }
32
33 .upgrade-btn:hover {
34 background: #0038fd;
35 }
36
37 .active-nav-link {
38 background: #1947ee;
39 }
40
41 .nav-item:hover {
42 background: #1947ee;
43 }
44
45 .account-link:hover {
46 background: #3d68ff;
47 }
48
49 .card {
50 /* Add shadows to create the "card" effect */
51 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
52 transition: 0.3s;
53 }
54
55 /* On mouse-over, add a deeper shadow */
56 .card:hover {
57 box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
58 }
59
60 /* Add some padding inside the card container */
61 .kontainer {
62 padding: 2px 16px;
63 }
64 </style>
65 <script src="https://cdn.tailwindcss.com"></script>
66
67</head>
68<body class="bg-gray-100 font-family-karla flex">
69<aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
70 <div class="p-6">
71 @if (Session::get('is_policeman'))
72 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
73 <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">
74 <i class="fas fa-plus mr-3"></i> <a href="/register-statement">Додади изјава</a>
75 </button>
76 @else
77 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
78 <button
79 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">
80 <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
81 </button>
82 @endif
83 </div>
84 <nav class="text-white text-base font-semibold pt-3">
85 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
86 <i class="fas fa-tachometer-alt mr-3"></i>
87 Контролна табла
88 </a>
89 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
90 <i class="fas fa-sticky-note mr-3"></i>
91 Вработени
92 </a>
93 <a href="/filter" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
94 <i class="fas fa-table mr-3"></i>
95 Филтрирај граѓани
96 </a>
97 <a href="/cases" class="flex items-center active-nav-link text-white py-4 pl-6 nav-item">
98 <i class="fas fa-align-left mr-3"></i>
99 Случаи
100 </a>
101 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
102 <i class="fas fa-calendar mr-3"></i>
103 Архива
104 </a>
105 </nav>
106 <a href="#"
107 class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
108 <i class="fas fa-arrow-circle-up mr-3"></i>
109
110 </a>
111</aside>
112
113<div class="w-full flex flex-col h-screen overflow-y-hidden">
114 <!-- Desktop Header -->
115 <header class="w-full items-center bg-white py-2 px-6 hidden sm:flex">
116 <div class="w-1/2"></div>
117 <div x-data="{ isOpen: false }" class="relative w-1/2 flex justify-end">
118 <button @click="isOpen = !isOpen"
119 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">
120 @php
121 $person = DB::select('select * from people where pe_id=:pe_id;', ['pe_id' => Session::get('pe_id')]);
122
123 if (!empty($person)) {
124 $image = $person[0]->picture;
125 } else {
126 $image = null;
127 }
128 @endphp
129
130 <img src="{{ $image }}">
131
132 </button>
133 <button x-show="isOpen" @click="isOpen = false" class="h-full w-full fixed inset-0 cursor-default"></button>
134 <div x-show="isOpen" class="absolute w-32 bg-white rounded-lg shadow-lg py-2 mt-16">
135 <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
136 <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
137 <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
138 </div>
139 </div>
140 </header>
141
142 <!-- Mobile Header & Nav -->
143 <header x-data="{ isOpen: false }" class="w-full bg-sidebar py-5 px-6 sm:hidden">
144 <div class="flex items-center justify-between">
145 <a href="/" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
146 <button @click="isOpen = !isOpen" class="text-white text-3xl focus:outline-none">
147 <i x-show="!isOpen" class="fas fa-bars"></i>
148 <i x-show="isOpen" class="fas fa-times"></i>
149 </button>
150 </div>
151
152 <!-- Dropdown Nav -->
153 <nav :class="isOpen ? 'flex': 'hidden'" class="flex flex-col pt-4">
154 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
155 <i class="fas fa-tachometer-alt mr-3"></i>
156 Контролна табла
157 </a>
158 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
159 <i class="fas fa-sticky-note mr-3"></i>
160 Вработени
161 </a>
162 <a href="/filter" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
163 <i class="fas fa-table mr-3"></i>
164 Филтрирај граѓани
165 </a>
166 <a href="/cases" class="flex items-center active-nav-link text-white py-2 pl-4 nav-item">
167 <i class="fas fa-align-left mr-3"></i>
168 Случаи
169 </a>
170
171
172 <a href="/finished_cases"
173 class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
174 <i class="fas fa-calendar mr-3"></i>
175 Архива
176 </a>
177 <a href="/help" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
178 <i class="fas fa-cogs mr-3"></i>
179 Помош
180 </a>
181 <a href="/myprofile" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
182 <i class="fas fa-user mr-3"></i>
183 Мој профил
184 </a>
185 <a href="/logout" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
186 <i class="fas fa-sign-out-alt mr-3"></i>
187 Одјави се
188 </a>
189
190 </nav>
191 <button
192 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">
193 <i class="fas fa-plus mr-3"></i> Нов извештај
194 </button>
195 </header>
196
197 <div class="w-full overflow-x-hidden border-t flex flex-col">
198 <main class="w-full flex-grow p-6">
199 <h1 class="text-3xl text-black pb-6">Контролна табла</h1>
200
201 <div class="flex flex-wrap mt-6">
202 <div class="w-full lg:w-1/3 pr-0 lg:pr-2">
203
204 <div class="p-6 bg-white">
205 <div>
206 @foreach($evidence as $ev)
207 <img class=" w-full" alt="image" src="{{$ev->e_picture}}"/>
208 @endforeach
209 </div>
210 </div>
211 </div>
212 <div class="w-full lg:w-1/3 pl-0 lg:pl-2 mt-12 lg:mt-0">
213
214 <div class="p-6 bg-white">
215 <div class="border-b border-black-200 pb-6">
216 <p class="text-sm leading-none text-black-600 dark:text-black-300 ">
217 Датум: {{$case->opening_date}}</p>
218 </div>
219
220 <div class="py-4 border-b border-black-200 flex items-center justify-between">
221 <p class="text-base leading-4 text-black-800 dark:text-black-300">
222 {{ $case->c_status === 'A' ? 'Активен случај' : ($case->c_status === 'Z' ? 'Затворен случај' : 'Unknown Status') }}
223 </p>
224 <div class="flex items-center justify-center">
225 <p class="text-sm leading-none text-gray-600 dark:text-gray-300 mr-3">Контролен
226 број:{{$case->c_id}}</p>
227
228 </div>
229 </div>
230 <p class="">
231 <img class="mr-3 dark:hidden"
232 src="https://tuk-cdn.s3.amazonaws.com/can-uploader/svg1.svg" alt="location">
233 <img class="mr-3 hidden dark:block"
234 src="https://tuk-cdn.s3.amazonaws.com/can-uploader/svg1dark.svg" alt="location">
235 {{$p_address}}
236 </p>
237 <div class="">
238 <button
239 class="bg-blue-500 focus:outline-none focus:ring-blue-500 text-base flex items-center justify-center leading-none text-white bg-blue-500 w-full py-4 hover:bg-blue-700 focus:outline-none">
240 Изјави
241 </button>
242 <div>
243 @foreach($statements as $statement)
244 <div class="container">
245
246 <div class="card">
247 <p class=" text-left py-3 px-4">{{$statement->statement_date}}</p>
248 <p class=" text-left py-3 px-4">{{$statement->description}}</p>
249 <p class=" text-left py-3 px-4">{{$statement->incident_place}}</p>
250 </div>
251 </div>
252 @endforeach
253 </div>
254 </div>
255 </div>
256 </div>
257 <div class="w-full lg:w-1/3 pl-0 lg:pl-2 mt-12 lg:mt-0">
258
259 <div class="p-6 bg-white">
260 <div x-data="{ isOpen: false }" class="relative flex justify-end">
261 <button @click="isOpen = !isOpen"
262 class="bg-blue-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 text-base flex items-center justify-center leading-none text-white bg-blue-500 w-full py-4 hover:bg-blue-700 focus:outline-none">
263 Инволвирани граѓани
264 </button>
265 <button x-show="isOpen" @click="isOpen = false"
266 class="h-full w-full fixed inset-0 cursor-default"></button>
267 <div x-show="isOpen"
268 class="absolute w-full bg-white rounded-lg shadow-lg py-2 mt-16 r bg-white border border-white-200 rounded-lg shadow text-black-900 md:flex-row md:max-w-xl hover:bg-white-100 dark:border-white-700 dark:bg-white-800 dark:hover:bg-white-700">
269 @foreach($victims as $victim)
270 <a href="#"
271 class="flex flex-col items-center bg-white border border-white-200 rounded-lg shadow text-black-900 md:flex-row md:max-w-xl hover:bg-white-100 dark:border-white-700 dark:bg-white-800 dark:hover:bg-white-700">
272 <img
273 class="object-cover w-full rounded-t-lg h-96 md:h-auto md:w-48 md:rounded-none md:rounded-s-lg"
274 src="{{$victim->picture}}" alt="">
275 <div class="flex flex-col justify-between text-dark-100 p-4 leading-normal">
276 <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-black-100">{{$victim->first_name}} {{$victim->last_name}}</h5>
277 <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">{{$victim->embg}}</p>
278 <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">Жртва</p>
279 </div>
280 </a>
281 @endforeach
282 @foreach($witness as $w)
283 <a href="#"
284 class="flex flex-col items-center bg-white border border-white-200 rounded-lg shadow text-black-900 md:flex-row md:max-w-xl hover:bg-white-100 dark:border-white-700 dark:bg-white-800 dark:hover:bg-white-700">
285 <img
286 class="object-cover w-full rounded-t-lg h-96 md:h-auto md:w-48 md:rounded-none md:rounded-s-lg"
287 src="{{$w->picture}}" alt="">
288 <div class="flex flex-col justify-between text-dark-100 p-4 leading-normal">
289 <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-black-100">{{$w->first_name}} {{$w->last_name}}</h5>
290 <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">{{$w->embg}}</p>
291 <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">Сведок</p>
292 </div>
293 </a>
294 @endforeach
295 <br>
296 </div>
297 </div>
298 </div>
299 </div>
300 </div>
301
302
303 </main>
304{{-- <main class="w-full flex-grow p-6">--}}
305{{-- <h1 class="text-3xl text-black pb-6">Контролна табла</h1>--}}
306{{-- <div class="flex flex-wrap mt-6">--}}
307
308{{-- <div class="w-full mt-12">--}}
309{{-- <p class="text-xl pb-3 flex items-center">--}}
310{{-- <i class="fas fa-list mr-3"></i> {{$case->c_name}}--}}
311{{-- </p>--}}
312{{-- </div>--}}
313{{-- <div class="flex mb-4">--}}
314{{-- <div class="w-1/3 bg-gray-400 h-12">--}}
315{{-- <div>--}}
316{{-- @foreach($evidence as $ev)--}}
317{{-- <div class=" w-full md:block hidden">--}}
318{{-- <img class="mt-3 w-1/3" alt="image" src="{{$ev->e_picture}}"/>--}}
319{{-- </div>--}}
320{{-- @endforeach--}}
321{{-- </div>--}}
322{{-- </div>--}}
323{{-- <div class="w-1/3 bg-gray-500 h-12">--}}
324{{-- <div class="border-b border-black-200 pb-6">--}}
325{{-- <p class="text-sm leading-none text-black-600 dark:text-black-300 ">--}}
326{{-- Датум: {{$case->opening_date}}</p>--}}
327{{-- </div>--}}
328
329{{-- <div class="py-4 border-b border-black-200 flex items-center justify-between">--}}
330{{-- <p class="text-base leading-4 text-black-800 dark:text-black-300">--}}
331{{-- {{ $case->c_status === 'A' ? 'Активен случај' : ($case->c_status === 'Z' ? 'Затворен случај' : 'Unknown Status') }}--}}
332{{-- </p>--}}
333{{-- <div class="flex items-center justify-center">--}}
334{{-- <p class="text-sm leading-none text-gray-600 dark:text-gray-300 mr-3">Контролен--}}
335{{-- број:{{$case->c_id}}</p>--}}
336
337{{-- </div>--}}
338{{-- </div>--}}
339{{-- <p class="">--}}
340{{-- <img class="mr-3 dark:hidden"--}}
341{{-- src="https://tuk-cdn.s3.amazonaws.com/can-uploader/svg1.svg" alt="location">--}}
342{{-- <img class="mr-3 hidden dark:block"--}}
343{{-- src="https://tuk-cdn.s3.amazonaws.com/can-uploader/svg1dark.svg" alt="location">--}}
344{{-- {{$p_address}}--}}
345{{-- </p>--}}
346{{-- <div class="">--}}
347{{-- <button--}}
348{{-- class="bg-blue-500 focus:outline-none focus:ring-blue-500 text-base flex items-center justify-center leading-none text-white bg-blue-500 w-full py-4 hover:bg-blue-700 focus:outline-none">--}}
349{{-- Изјави--}}
350{{-- </button>--}}
351{{-- <div>--}}
352{{-- @foreach($statements as $statement)--}}
353{{-- <div class="container">--}}
354
355{{-- <div class="card">--}}
356{{-- <p class=" text-left py-3 px-4">{{$statement->statement_date}}</p>--}}
357{{-- <p class=" text-left py-3 px-4">{{$statement->description}}</p>--}}
358{{-- <p class=" text-left py-3 px-4">{{$statement->incident_place}}</p>--}}
359{{-- </div>--}}
360{{-- </div>--}}
361{{-- @endforeach--}}
362{{-- </div>--}}
363{{-- </div>--}}
364{{-- </div>--}}
365{{-- <div class="w-1/3 bg-gray-400">--}}
366{{-- <div x-data="{ isOpen: false }" class="relative flex justify-end">--}}
367{{-- <button @click="isOpen = !isOpen"--}}
368{{-- class="bg-blue-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 text-base flex items-center justify-center leading-none text-white bg-blue-500 w-full py-4 hover:bg-blue-700 focus:outline-none">--}}
369{{-- Инволвирани граѓани--}}
370{{-- </button>--}}
371{{-- <button x-show="isOpen" @click="isOpen = false"--}}
372{{-- class="h-full w-full fixed inset-0 cursor-default"></button>--}}
373{{-- <div x-show="isOpen"--}}
374{{-- class="absolute w-full bg-white rounded-lg shadow-lg py-2 mt-16 r bg-white border border-white-200 rounded-lg shadow text-black-900 md:flex-row md:max-w-xl hover:bg-white-100 dark:border-white-700 dark:bg-white-800 dark:hover:bg-white-700">--}}
375{{-- @foreach($victims as $victim)--}}
376{{-- <a href="#"--}}
377{{-- class="flex flex-col items-center bg-white border border-white-200 rounded-lg shadow text-black-900 md:flex-row md:max-w-xl hover:bg-white-100 dark:border-white-700 dark:bg-white-800 dark:hover:bg-white-700">--}}
378{{-- <img--}}
379{{-- class="object-cover w-full rounded-t-lg h-96 md:h-auto md:w-48 md:rounded-none md:rounded-s-lg"--}}
380{{-- src="{{$victim->picture}}" alt="">--}}
381{{-- <div class="flex flex-col justify-between text-dark-100 p-4 leading-normal">--}}
382{{-- <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-black-100">{{$victim->first_name}} {{$victim->last_name}}</h5>--}}
383{{-- <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">{{$victim->embg}}</p>--}}
384{{-- <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">Жртва</p>--}}
385{{-- </div>--}}
386{{-- </a>--}}
387{{-- @endforeach--}}
388{{-- @foreach($witness as $w)--}}
389{{-- <a href="#"--}}
390{{-- class="flex flex-col items-center bg-white border border-white-200 rounded-lg shadow text-black-900 md:flex-row md:max-w-xl hover:bg-white-100 dark:border-white-700 dark:bg-white-800 dark:hover:bg-white-700">--}}
391{{-- <img--}}
392{{-- class="object-cover w-full rounded-t-lg h-96 md:h-auto md:w-48 md:rounded-none md:rounded-s-lg"--}}
393{{-- src="{{$w->picture}}" alt="">--}}
394{{-- <div class="flex flex-col justify-between text-dark-100 p-4 leading-normal">--}}
395{{-- <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-black-100">{{$w->first_name}} {{$w->last_name}}</h5>--}}
396{{-- <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">{{$w->embg}}</p>--}}
397{{-- <p class="mb-3 font-normal text-gray-700 dark:text-gray-400">Сведок</p>--}}
398{{-- </div>--}}
399{{-- </a>--}}
400{{-- @endforeach--}}
401{{-- <br>--}}
402{{-- </div>--}}
403{{-- </div>--}}
404{{-- </div>--}}
405{{-- </div>--}}
406{{-- </div>--}}
407{{-- </main>--}}
408 </div>
409</div>
410
411<!-- AlpineJS -->
412<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
413<!-- Font Awesome -->
414<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"
415 integrity="sha256-KzZiKy0DWYsnwMF+X1DvQngQ2/FxF7MF3Ff72XcpuPs=" crossorigin="anonymous"></script>
416<!-- ChartJS -->
417<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"
418 integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
419
420</body>
421</html>
Note: See TracBrowser for help on using the repository browser.