[c454c0f] | 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>
|
---|
[6b10b67] | 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 | .center {
|
---|
| 50 | border: 5px solid;
|
---|
| 51 | width: 50%;
|
---|
| 52 | padding: 10px;
|
---|
| 53 | margin-left: 400px;
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | /* Hide the browser's default checkbox */
|
---|
| 57 | .container input {
|
---|
| 58 | position: absolute;
|
---|
| 59 | opacity: 0;
|
---|
| 60 | cursor: pointer;
|
---|
| 61 | height: 0;
|
---|
| 62 | width: 0;
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | /* Create a custom checkbox */
|
---|
| 66 | .checkmark {
|
---|
| 67 | position: absolute;
|
---|
| 68 | top: 0;
|
---|
| 69 | left: 0;
|
---|
| 70 | height: 25px;
|
---|
| 71 | width: 25px;
|
---|
| 72 | background-color: #eee;
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 | /* On mouse-over, add a grey background color */
|
---|
| 76 | .container:hover input ~ .checkmark {
|
---|
| 77 | background-color: #ccc;
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | /* When the checkbox is checked, add a blue background */
|
---|
| 81 | .container input:checked ~ .checkmark {
|
---|
| 82 | background-color: #2196F3;
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 | /* Create the checkmark/indicator (hidden when not checked) */
|
---|
| 86 | .checkmark:after {
|
---|
| 87 | content: "";
|
---|
| 88 | position: absolute;
|
---|
| 89 | display: none;
|
---|
| 90 | }
|
---|
| 91 |
|
---|
| 92 | /* Show the checkmark when checked */
|
---|
| 93 | .container input:checked ~ .checkmark:after {
|
---|
| 94 | display: block;
|
---|
| 95 | }
|
---|
| 96 |
|
---|
| 97 | /* Style the checkmark/indicator */
|
---|
| 98 | .container .checkmark:after {
|
---|
| 99 | left: 9px;
|
---|
| 100 | top: 5px;
|
---|
| 101 | width: 5px;
|
---|
| 102 | height: 10px;
|
---|
| 103 | border: solid white;
|
---|
| 104 | border-width: 0 3px 3px 0;
|
---|
| 105 | -webkit-transform: rotate(45deg);
|
---|
| 106 | -ms-transform: rotate(45deg);
|
---|
| 107 | transform: rotate(45deg);
|
---|
| 108 | }
|
---|
| 109 | body > div > main > div > div > form{
|
---|
| 110 | margin-left: 500px;
|
---|
| 111 | width: 600px;
|
---|
| 112 | }
|
---|
| 113 |
|
---|
[7e9dadd] | 114 | .alert-success {
|
---|
| 115 | color: #3c763d;
|
---|
| 116 | background-color: #dff0d8;
|
---|
| 117 | border-color: #d6e9c6;
|
---|
| 118 | }
|
---|
| 119 | .alert {
|
---|
| 120 | padding: 15px;
|
---|
| 121 | margin-bottom: 20px;
|
---|
| 122 | border: 1px solid transparent;
|
---|
| 123 | border-radius: 4px;
|
---|
| 124 | width: 200px;
|
---|
| 125 | float: right;
|
---|
| 126 | }
|
---|
[c454c0f] | 127 | </style>
|
---|
| 128 | <script src="https://cdn.tailwindcss.com"></script>
|
---|
[6b10b67] | 129 |
|
---|
[c454c0f] | 130 | </head>
|
---|
[6b10b67] | 131 | <body class="bg-gray-100 font-family-karla flex">
|
---|
| 132 | <aside class="relative bg-sidebar h-screen w-64 hidden sm:block shadow-xl">
|
---|
| 133 | <div class="p-6">
|
---|
[d9c4096] | 134 | @if (Session::get('is_policeman'))
|
---|
| 135 | <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Полицаец</a>
|
---|
| 136 | @else
|
---|
| 137 | <a href="#" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
|
---|
| 138 | <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">
|
---|
| 139 | <i class="fas fa-plus mr-3"></i> <a href="/register-policeman">Додади полицаец</a>
|
---|
| 140 | </button>
|
---|
| 141 | @endif
|
---|
[6b10b67] | 142 | </div>
|
---|
| 143 | <nav class="text-white text-base font-semibold pt-3">
|
---|
| 144 | <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
| 145 | <i class="fas fa-tachometer-alt mr-3"></i>
|
---|
[7e9dadd] | 146 | Контролна табла
|
---|
[6b10b67] | 147 | </a>
|
---|
| 148 | <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
| 149 | <i class="fas fa-sticky-note mr-3"></i>
|
---|
| 150 | Вработени
|
---|
| 151 | </a>
|
---|
| 152 | <a href="/filter" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
| 153 | <i class="fas fa-table mr-3"></i>
|
---|
| 154 | Филтрирај граѓани
|
---|
| 155 | </a>
|
---|
| 156 | <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
| 157 | <i class="fas fa-align-left mr-3"></i>
|
---|
| 158 | Случаи
|
---|
| 159 | </a>
|
---|
| 160 | <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
| 161 | <i class="fas fa-calendar mr-3"></i>
|
---|
| 162 | Архива
|
---|
| 163 | </a>
|
---|
| 164 | </nav>
|
---|
| 165 | <a href="#" class="absolute w-full upgrade-btn bottom-0 active-nav-link text-white flex items-center justify-center py-4">
|
---|
| 166 | <i class="fas fa-arrow-circle-up mr-3"></i>
|
---|
| 167 | Поставки за профил
|
---|
| 168 | </a>
|
---|
| 169 | </aside>
|
---|
| 170 |
|
---|
| 171 | <div class="w-full flex flex-col h-screen overflow-y-hidden">
|
---|
| 172 | <!-- Desktop Header -->
|
---|
| 173 | <header class="w-full items-center bg-white py-2 px-6 hidden sm:flex">
|
---|
| 174 | <div class="w-1/2"></div>
|
---|
| 175 | <div x-data="{ isOpen: false }" class="relative w-1/2 flex justify-end">
|
---|
| 176 | <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">
|
---|
| 177 | <img src="https://source.unsplash.com/uJ8LNVCBjFQ/400x400">
|
---|
| 178 | </button>
|
---|
| 179 | <button x-show="isOpen" @click="isOpen = false" class="h-full w-full fixed inset-0 cursor-default"></button>
|
---|
| 180 | <div x-show="isOpen" class="absolute w-32 bg-white rounded-lg shadow-lg py-2 mt-16">
|
---|
| 181 | <a href="#" class="block px-4 py-2 account-link hover:text-white">Профил</a>
|
---|
| 182 | <a href="#" class="block px-4 py-2 account-link hover:text-white">Помош</a>
|
---|
[cf84baa] | 183 | <a href="/logout"class="block px-4 py-2 account-link hover:text-white">Одјави се</a>
|
---|
[6b10b67] | 184 | </div>
|
---|
[c454c0f] | 185 | </div>
|
---|
[6b10b67] | 186 | </header>
|
---|
| 187 |
|
---|
| 188 | <!-- Mobile Header & Nav -->
|
---|
| 189 | <header x-data="{ isOpen: false }" class="w-full bg-sidebar py-5 px-6 sm:hidden">
|
---|
| 190 | <div class="flex items-center justify-between">
|
---|
| 191 | <a href="/" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
|
---|
| 192 | <button @click="isOpen = !isOpen" class="text-white text-3xl focus:outline-none">
|
---|
| 193 | <i x-show="!isOpen" class="fas fa-bars"></i>
|
---|
| 194 | <i x-show="isOpen" class="fas fa-times"></i>
|
---|
| 195 | </button>
|
---|
| 196 | </div>
|
---|
| 197 |
|
---|
| 198 | <!-- Dropdown Nav -->
|
---|
| 199 | <nav :class="isOpen ? 'flex': 'hidden'" class="flex flex-col pt-4">
|
---|
| 200 | <a href="/" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
| 201 | <i class="fas fa-tachometer-alt mr-3"></i>
|
---|
| 202 | Контролна табла
|
---|
| 203 | </a>
|
---|
| 204 | <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
| 205 | <i class="fas fa-sticky-note mr-3"></i>
|
---|
| 206 | Вработени
|
---|
| 207 | </a>
|
---|
| 208 | <a href="/filter" class="flex items-center active-nav-link text-white py-2 pl-4 nav-item">
|
---|
| 209 | <i class="fas fa-table mr-3"></i>
|
---|
| 210 | Филтрирај граѓани
|
---|
| 211 | </a>
|
---|
| 212 | <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
| 213 | <i class="fas fa-align-left mr-3"></i>
|
---|
| 214 | Случаи
|
---|
| 215 | </a>
|
---|
| 216 |
|
---|
| 217 | <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
| 218 | <i class="fas fa-calendar mr-3"></i>
|
---|
| 219 | Архива
|
---|
| 220 | </a>
|
---|
| 221 | <a href="/help" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
| 222 | <i class="fas fa-cogs mr-3"></i>
|
---|
| 223 | Помош
|
---|
| 224 | </a>
|
---|
| 225 | <a href="/myprofile" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
| 226 | <i class="fas fa-user mr-3"></i>
|
---|
| 227 | Мој профил
|
---|
| 228 | </a>
|
---|
| 229 | <a href="/logout" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
| 230 | <i class="fas fa-sign-out-alt mr-3"></i>
|
---|
| 231 | Одјави се
|
---|
| 232 | </a>
|
---|
| 233 |
|
---|
| 234 | </nav>
|
---|
| 235 | <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">
|
---|
| 236 | <i class="fas fa-plus mr-3"></i> Нов извештај
|
---|
| 237 | </button>
|
---|
| 238 | </header>
|
---|
| 239 |
|
---|
| 240 |
|
---|
| 241 | <main class="w-full flex-grow p-6">
|
---|
| 242 |
|
---|
| 243 | <h1 class="text-3xl text-black pb-6">Контролна табла</h1>
|
---|
[c454c0f] | 244 |
|
---|
| 245 |
|
---|
[6b10b67] | 246 |
|
---|
| 247 | <div class="w-full mt-12">
|
---|
| 248 | <p class="text-xl pb-3 flex items-center">
|
---|
| 249 | <i class="fas fa-list mr-3"></i> Додавање на полицаец
|
---|
| 250 | </p>
|
---|
| 251 |
|
---|
| 252 | <div class=".center">
|
---|
| 253 | <form method="POST" action="/register-policeman" class="mt-10 .center">
|
---|
| 254 | @csrf
|
---|
| 255 | <div class="mb-6">
|
---|
| 256 | <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
|
---|
| 257 | for="embg"
|
---|
| 258 | >
|
---|
| 259 | ЕМБГ
|
---|
| 260 | </label>
|
---|
| 261 |
|
---|
| 262 | <input class="border border-gray-400 p-2 w-full"
|
---|
| 263 | type="text"
|
---|
| 264 | name="embg"
|
---|
| 265 | value="{{old('embg')}}"
|
---|
| 266 | id="embg"
|
---|
| 267 | required
|
---|
| 268 | >
|
---|
| 269 | </div>
|
---|
| 270 | <div class="mb-6">
|
---|
| 271 | <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
|
---|
[d9c4096] | 272 | for="first_name"
|
---|
[6b10b67] | 273 | >
|
---|
| 274 | Име
|
---|
| 275 | </label>
|
---|
| 276 |
|
---|
| 277 | <input class="border border-gray-400 p-2 w-full text-gray-500"
|
---|
| 278 | type="text"
|
---|
[d9c4096] | 279 | name="first_name"
|
---|
[92df8cd] | 280 | value=""
|
---|
[d9c4096] | 281 | id="first_name"
|
---|
[6b10b67] | 282 | required
|
---|
| 283 | disabled="disabled">
|
---|
| 284 | </div>
|
---|
| 285 |
|
---|
| 286 | @error('name')
|
---|
| 287 | <p class="text-red-500 text-xs mt-1">{{$message}}</p>
|
---|
| 288 | @enderror
|
---|
| 289 |
|
---|
| 290 | <div class="mb-6">
|
---|
| 291 | <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
|
---|
[d9c4096] | 292 | for="last_name"
|
---|
[6b10b67] | 293 | >
|
---|
| 294 | Презиме
|
---|
| 295 | </label>
|
---|
| 296 |
|
---|
| 297 | <input class="border border-gray-400 p-2 w-full text-gray-500"
|
---|
| 298 | type="text"
|
---|
[d9c4096] | 299 | name="last_name"
|
---|
[6b10b67] | 300 | value=""
|
---|
[d9c4096] | 301 | id="last_name"
|
---|
[6b10b67] | 302 | required
|
---|
| 303 | disabled="disabled" >
|
---|
| 304 | </div>
|
---|
| 305 | @error('lastname')
|
---|
| 306 | <p class="text-red-500 text-xs mt-1">{{$message}}</p>
|
---|
| 307 | @enderror
|
---|
| 308 |
|
---|
| 309 | <div class="mb-6">
|
---|
| 310 | <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
|
---|
[92df8cd] | 311 | for="badge_no"
|
---|
[6b10b67] | 312 | >
|
---|
[92df8cd] | 313 | Број на значка
|
---|
[6b10b67] | 314 | </label>
|
---|
| 315 |
|
---|
| 316 | <input class="border border-gray-400 p-2 w-full"
|
---|
[92df8cd] | 317 | type="text"
|
---|
| 318 | name="badge_no"
|
---|
| 319 | value="{{old('badge_no')}}"
|
---|
| 320 | id="badge_no"
|
---|
[6b10b67] | 321 | required
|
---|
| 322 | >
|
---|
| 323 | </div>
|
---|
[92df8cd] | 324 | @error('badge_no')
|
---|
[6b10b67] | 325 | <p class="text-red-500 text-xs mt-1">{{$message}}</p>
|
---|
| 326 | @enderror
|
---|
| 327 |
|
---|
| 328 | <div class="mb-6">
|
---|
| 329 | <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
|
---|
| 330 | for="password"
|
---|
| 331 | >
|
---|
| 332 | Password
|
---|
| 333 | </label>
|
---|
| 334 |
|
---|
| 335 | <input class="border border-gray-400 p-2 w-full"
|
---|
| 336 | type="password"
|
---|
| 337 | name="password"
|
---|
| 338 | id="password"
|
---|
| 339 | required
|
---|
| 340 | >
|
---|
| 341 | </div>
|
---|
| 342 | <div class="mb-6">
|
---|
| 343 | <label class="block mb-2 uppercase font-bold text-xs text-gray-700"
|
---|
| 344 | for="rank"
|
---|
| 345 | >
|
---|
| 346 | Ранк
|
---|
| 347 | </label>
|
---|
| 348 |
|
---|
| 349 | <input class="border border-gray-400 p-2 w-full"
|
---|
| 350 | type="text"
|
---|
| 351 | name="rank"
|
---|
| 352 | id="rank"
|
---|
| 353 | required
|
---|
| 354 | >
|
---|
| 355 | </div>
|
---|
| 356 |
|
---|
| 357 | <div class="mb-6">
|
---|
| 358 | <button type="submit"
|
---|
| 359 | class="bg-blue-400 text-white rounded py-2 px-4 hover:bg-blue-500"
|
---|
| 360 | >
|
---|
| 361 | Додади
|
---|
| 362 | </button>
|
---|
| 363 | </div>
|
---|
| 364 | </form>
|
---|
[7e9dadd] | 365 | @if(session()->has('message'))
|
---|
| 366 | <div class="alert alert-success">
|
---|
| 367 | <strong>{{ session()->get('message') }}</strong>
|
---|
| 368 | </div>
|
---|
| 369 | @endif
|
---|
| 370 |
|
---|
[6b10b67] | 371 | </div>
|
---|
| 372 | </div>
|
---|
| 373 | </main>
|
---|
[c454c0f] | 374 | </div>
|
---|
[6b10b67] | 375 |
|
---|
| 376 |
|
---|
| 377 | <!-- AlpineJS -->
|
---|
| 378 | <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
|
---|
| 379 | <!-- Font Awesome -->
|
---|
| 380 | <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>
|
---|
| 381 | <!-- ChartJS -->
|
---|
| 382 | <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
|
---|
[92df8cd] | 383 | <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
|
---|
| 384 |
|
---|
| 385 | <script>
|
---|
| 386 | $(document).ready(function () {
|
---|
| 387 | $('#embg').on('input', function () {
|
---|
| 388 | var embg = $(this).val();
|
---|
| 389 |
|
---|
| 390 | $.ajax({
|
---|
| 391 | url: '/get-person', // Replace with your actual route
|
---|
| 392 | type: 'POST',
|
---|
| 393 | data: { embg: embg, _token: '{{ csrf_token() }}' },
|
---|
| 394 | success: function (data) {
|
---|
| 395 | $('#first_name').val(data.first_name);
|
---|
| 396 | $('#last_name').val(data.last_name);
|
---|
| 397 | }
|
---|
| 398 | });
|
---|
| 399 | });
|
---|
| 400 | });
|
---|
| 401 | </script>
|
---|
[6b10b67] | 402 |
|
---|
[d9c4096] | 403 |
|
---|
[c454c0f] | 404 | </body>
|
---|
| 405 | </html>
|
---|