source: resources/views/cases.blade.php@ 3c89e27

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

Final features

  • Property mode set to 100644
File size: 9.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 </style>
25 <script src="https://cdn.tailwindcss.com"></script>
26
27</head>
28<body class="bg-gray-100 font-family-karla flex">
29<aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
30 <div class="p-6">
31 @if (Session::get('is_policeman'))
32 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
33
34 @else
35 <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
36 <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">
37 <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
38 </button>
39 @endif
40 </div>
41 <nav class="text-white text-base font-semibold pt-3">
42 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
43 <i class="fas fa-tachometer-alt mr-3"></i>
44 Контролна табла
45 </a>
46 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
47 <i class="fas fa-sticky-note mr-3"></i>
48 Вработени
49 </a>
50 <a href="/filter" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
51 <i class="fas fa-table mr-3"></i>
52 Филтрирај граѓани
53 </a>
54 <a href="/cases" class="flex items-center active-nav-link text-white py-4 pl-6 nav-item">
55 <i class="fas fa-align-left mr-3"></i>
56 Случаи
57 </a>
58 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
59 <i class="fas fa-calendar mr-3"></i>
60 Архива
61 </a>
62 </nav>
63 <a href="#" class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
64 <i class="fas fa-arrow-circle-up mr-3"></i>
65
66 </a>
67</aside>
68
69<div class="w-full flex flex-col h-screen overflow-y-hidden">
70 <!-- Desktop Header -->
71 <header class="w-full items-center bg-white py-2 px-6 hidden sm:flex">
72 <div class="w-1/2"></div>
73 <div x-data="{ isOpen: false }" class="relative w-1/2 flex justify-end">
74 <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">
75 @php
76 $person = DB::select('select * from people where pe_id=:pe_id;', ['pe_id' => Session::get('pe_id')]);
77
78 if (!empty($person)) {
79 $image = $person[0]->picture;
80 } else {
81 $image = null;
82 }
83 @endphp
84
85 <img src="{{ $image }}">
86
87 </button>
88 <button x-show="isOpen" @click="isOpen = false" class="h-full w-full fixed inset-0 cursor-default"></button>
89 <div x-show="isOpen" class="absolute w-32 bg-white rounded-lg shadow-lg py-2 mt-16">
90 <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
91 <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
92 <a href="/logout" class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
93 </div>
94 </div>
95 </header>
96
97 <!-- Mobile Header & Nav -->
98 <header x-data="{ isOpen: false }" class="w-full bg-sidebar py-5 px-6 sm:hidden">
99 <div class="flex items-center justify-between">
100 <a href="/" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
101 <button @click="isOpen = !isOpen" class="text-white text-3xl focus:outline-none">
102 <i x-show="!isOpen" class="fas fa-bars"></i>
103 <i x-show="isOpen" class="fas fa-times"></i>
104 </button>
105 </div>
106
107 <!-- Dropdown Nav -->
108 <nav :class="isOpen ? 'flex': 'hidden'" class="flex flex-col pt-4">
109 <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
110 <i class="fas fa-tachometer-alt mr-3"></i>
111 Контролна табла
112 </a>
113 <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
114 <i class="fas fa-sticky-note mr-3"></i>
115 Вработени
116 </a>
117 <a href="/filter" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
118 <i class="fas fa-table mr-3"></i>
119 Филтрирај граѓани
120 </a>
121 <a href="/cases" class="flex items-center active-nav-link text-white py-2 pl-4 nav-item">
122 <i class="fas fa-align-left mr-3"></i>
123 Случаи
124 </a>
125
126
127 <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
128 <i class="fas fa-calendar mr-3"></i>
129 Архива
130 </a>
131 <a href="/help" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
132 <i class="fas fa-cogs mr-3"></i>
133 Помош
134 </a>
135 <a href="/myprofile" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
136 <i class="fas fa-user mr-3"></i>
137 Мој профил
138 </a>
139 <a href="/logout" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
140 <i class="fas fa-sign-out-alt mr-3"></i>
141 Одјави се
142 </a>
143
144 </nav>
145 <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">
146 <i class="fas fa-plus mr-3"></i> Нов извештај
147 </button>
148 </header>
149
150 <div class="w-full overflow-x-hidden border-t flex flex-col">
151 <main class="w-full flex-grow p-6">
152 <h1 class="text-3xl text-black pb-6">Контролна табла</h1>
153
154
155
156 <div class="w-full mt-12">
157 <p class="text-xl pb-3 flex items-center">
158 <i class="fas fa-list mr-3"></i> Случаи од станица {{$p_address}}
159 </p>
160 <div class="bg-white overflow-auto">
161 <table class="min-w-full bg-white">
162 <thead class="bg-gray-800 text-white">
163 <tr>
164 <td class="text-left py-3 px-4">Име</td>
165 <th class="w-1/3 text-left py-3 px-4 uppercase font-semibold text-sm">Датум</th>
166 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">Статус</th>
167 <th class="text-left py-3 px-4 uppercase font-semibold text-sm">Овластен полицаец</th>
168 </tr>
169 </thead>
170 <tbody class="text-gray-700">
171 @foreach($cases as $case)
172 <tr>
173 <td class="text-left py-3 px-4"><a class="hover:text-blue-500" href="/case/{{$case->c_id}}">{{$case->c_name}}</a></td>
174 <td class="w-1/3 text-left py-3 px-4">{{$case->opening_date}}</td>
175 <td class="w-1/3 text-left py-3 px-4">{{$case->c_status}}</td>
176 <td class="w-1/3 text-left py-3 px-4">{{$case->p_id}}</td>
177 </tr>
178 @endforeach
179
180
181 </tbody>
182 </table>
183 </div>
184 </div>
185 </main>
186
187
188 </div>
189
190</div>
191
192<!-- AlpineJS -->
193<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
194<!-- Font Awesome -->
195<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>
196<!-- ChartJS -->
197<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
198
199</body>
200</html>
Note: See TracBrowser for help on using the repository browser.