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