[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>
|
---|
| 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">
|
---|
[cf84baa] | 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 | @endif
|
---|
[c454c0f] | 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> Додади полицаец
|
---|
| 38 | </button>
|
---|
| 39 | </div>
|
---|
| 40 | <nav class="text-white text-base font-semibold pt-3">
|
---|
[75151c6] | 41 | <a href="/" class="flex items-center active-nav-link text-white py-4 pl-6 nav-item">
|
---|
[c454c0f] | 42 | <i class="fas fa-tachometer-alt mr-3"></i>
|
---|
[75151c6] | 43 | Контролна табла
|
---|
[c454c0f] | 44 | </a>
|
---|
[75151c6] | 45 | <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
[c454c0f] | 46 | <i class="fas fa-sticky-note mr-3"></i>
|
---|
[75151c6] | 47 | Вработени
|
---|
[c454c0f] | 48 | </a>
|
---|
[75151c6] | 49 | <a href="/filter" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
[c454c0f] | 50 | <i class="fas fa-table mr-3"></i>
|
---|
[75151c6] | 51 | Филтрирај граѓани
|
---|
[c454c0f] | 52 | </a>
|
---|
[75151c6] | 53 | <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
[c454c0f] | 54 | <i class="fas fa-align-left mr-3"></i>
|
---|
[75151c6] | 55 | Случаи
|
---|
[c454c0f] | 56 | </a>
|
---|
[75151c6] | 57 | <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-4 pl-6 nav-item">
|
---|
[c454c0f] | 58 | <i class="fas fa-calendar mr-3"></i>
|
---|
[75151c6] | 59 | Архива
|
---|
[c454c0f] | 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>
|
---|
[75151c6] | 64 | Поставки за профил
|
---|
[c454c0f] | 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">
|
---|
[75151c6] | 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>
|
---|
[c454c0f] | 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">
|
---|
[75151c6] | 88 | <a href="/" class="text-white text-3xl font-semibold uppercase hover:text-gray-300">Началник</a>
|
---|
[c454c0f] | 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">
|
---|
[75151c6] | 97 | <a href="/" class="flex items-center active-nav-link text-white py-2 pl-4 nav-item">
|
---|
[c454c0f] | 98 | <i class="fas fa-tachometer-alt mr-3"></i>
|
---|
[75151c6] | 99 | Контролна табла
|
---|
[c454c0f] | 100 | </a>
|
---|
[75151c6] | 101 | <a href="/employees" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
[c454c0f] | 102 | <i class="fas fa-sticky-note mr-3"></i>
|
---|
[75151c6] | 103 | Вработени
|
---|
[c454c0f] | 104 | </a>
|
---|
[75151c6] | 105 | <a href="/filter" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
[c454c0f] | 106 | <i class="fas fa-table mr-3"></i>
|
---|
[75151c6] | 107 | Филтрирај граѓани
|
---|
[c454c0f] | 108 | </a>
|
---|
[75151c6] | 109 | <a href="/cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
[c454c0f] | 110 | <i class="fas fa-align-left mr-3"></i>
|
---|
[75151c6] | 111 | Случаи
|
---|
[c454c0f] | 112 | </a>
|
---|
[75151c6] | 113 |
|
---|
| 114 | <a href="/finished_cases" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
[c454c0f] | 115 | <i class="fas fa-calendar mr-3"></i>
|
---|
[75151c6] | 116 | Архива
|
---|
[c454c0f] | 117 | </a>
|
---|
[75151c6] | 118 | <a href="/help" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
[c454c0f] | 119 | <i class="fas fa-cogs mr-3"></i>
|
---|
[75151c6] | 120 | Помош
|
---|
[c454c0f] | 121 | </a>
|
---|
[75151c6] | 122 | <a href="/myprofile" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
[c454c0f] | 123 | <i class="fas fa-user mr-3"></i>
|
---|
[75151c6] | 124 | Мој профил
|
---|
[c454c0f] | 125 | </a>
|
---|
[75151c6] | 126 | <a href="/logout" class="flex items-center text-white opacity-75 hover:opacity-100 py-2 pl-4 nav-item">
|
---|
[c454c0f] | 127 | <i class="fas fa-sign-out-alt mr-3"></i>
|
---|
[75151c6] | 128 | Одјави се
|
---|
[c454c0f] | 129 | </a>
|
---|
[75151c6] | 130 |
|
---|
[c454c0f] | 131 | </nav>
|
---|
[75151c6] | 132 | <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">
|
---|
| 133 | <i class="fas fa-plus mr-3"></i> Нов извештај
|
---|
| 134 | </button>
|
---|
[c454c0f] | 135 | </header>
|
---|
| 136 |
|
---|
| 137 | <div class="w-full overflow-x-hidden border-t flex flex-col">
|
---|
| 138 | <main class="w-full flex-grow p-6">
|
---|
[75151c6] | 139 | <h1 class="text-3xl text-black pb-6">Контролна табла</h1>
|
---|
[c454c0f] | 140 |
|
---|
| 141 | <div class="flex flex-wrap mt-6">
|
---|
| 142 | <div class="w-full lg:w-1/2 pr-0 lg:pr-2">
|
---|
| 143 | <p class="text-xl pb-3 flex items-center">
|
---|
| 144 | <i class="fas fa-plus mr-3"></i> Месечни извештаи
|
---|
| 145 | </p>
|
---|
| 146 | <div class="p-6 bg-white">
|
---|
| 147 | <canvas id="chartOne" width="400" height="200"></canvas>
|
---|
| 148 | </div>
|
---|
| 149 | </div>
|
---|
| 150 | <div class="w-full lg:w-1/2 pl-0 lg:pl-2 mt-12 lg:mt-0">
|
---|
| 151 | <p class="text-xl pb-3 flex items-center">
|
---|
[75151c6] | 152 | <i class="fas fa-check mr-3"></i> Решени случаи
|
---|
[c454c0f] | 153 | </p>
|
---|
| 154 | <div class="p-6 bg-white">
|
---|
| 155 | <canvas id="chartTwo" width="400" height="200"></canvas>
|
---|
| 156 | </div>
|
---|
| 157 | </div>
|
---|
| 158 | </div>
|
---|
| 159 |
|
---|
[75151c6] | 160 |
|
---|
[c454c0f] | 161 | </main>
|
---|
| 162 |
|
---|
| 163 | <footer class="w-full bg-white text-right p-4">
|
---|
[75151c6] | 164 | UI/UX инспирирано од <a target="_blank" href="https://davidgrzyb.com" class="underline">David Grzyb</a>.
|
---|
[c454c0f] | 165 | </footer>
|
---|
| 166 | </div>
|
---|
| 167 |
|
---|
| 168 | </div>
|
---|
| 169 |
|
---|
| 170 | <!-- AlpineJS -->
|
---|
| 171 | <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
|
---|
| 172 | <!-- Font Awesome -->
|
---|
| 173 | <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>
|
---|
| 174 | <!-- ChartJS -->
|
---|
| 175 | <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
|
---|
| 176 |
|
---|
| 177 | <script>
|
---|
| 178 | var chartOne = document.getElementById('chartOne');
|
---|
| 179 | var myChart = new Chart(chartOne, {
|
---|
| 180 | type: 'bar',
|
---|
| 181 | data: {
|
---|
[75151c6] | 182 | labels: ['Јануари', 'Фебруари', 'Март', 'Април', 'Мај', 'Јуни'],
|
---|
[c454c0f] | 183 | datasets: [{
|
---|
[75151c6] | 184 | label: 'Прва половина на 2023 година',
|
---|
[c454c0f] | 185 | data: [12, 19, 3, 5, 2, 3],
|
---|
| 186 | backgroundColor: [
|
---|
| 187 | 'rgba(255, 99, 132, 0.2)',
|
---|
| 188 | 'rgba(54, 162, 235, 0.2)',
|
---|
| 189 | 'rgba(255, 206, 86, 0.2)',
|
---|
| 190 | 'rgba(75, 192, 192, 0.2)',
|
---|
| 191 | 'rgba(153, 102, 255, 0.2)',
|
---|
| 192 | 'rgba(255, 159, 64, 0.2)'
|
---|
| 193 | ],
|
---|
| 194 | borderColor: [
|
---|
| 195 | 'rgba(255, 99, 132, 1)',
|
---|
| 196 | 'rgba(54, 162, 235, 1)',
|
---|
| 197 | 'rgba(255, 206, 86, 1)',
|
---|
| 198 | 'rgba(75, 192, 192, 1)',
|
---|
| 199 | 'rgba(153, 102, 255, 1)',
|
---|
| 200 | 'rgba(255, 159, 64, 1)'
|
---|
| 201 | ],
|
---|
| 202 | borderWidth: 1
|
---|
| 203 | }]
|
---|
| 204 | },
|
---|
| 205 | options: {
|
---|
| 206 | scales: {
|
---|
| 207 | yAxes: [{
|
---|
| 208 | ticks: {
|
---|
| 209 | beginAtZero: true
|
---|
| 210 | }
|
---|
| 211 | }]
|
---|
| 212 | }
|
---|
| 213 | }
|
---|
| 214 | });
|
---|
| 215 |
|
---|
| 216 | var chartTwo = document.getElementById('chartTwo');
|
---|
| 217 | var myLineChart = new Chart(chartTwo, {
|
---|
| 218 | type: 'line',
|
---|
| 219 | data: {
|
---|
[75151c6] | 220 | labels: ['Јануари', 'Фебруари', 'Март', 'Април', 'Мај', 'Јуни'],
|
---|
[c454c0f] | 221 | datasets: [{
|
---|
[75151c6] | 222 | label: 'До моменталниот месец',
|
---|
[c454c0f] | 223 | data: [12, 19, 3, 5, 2, 3],
|
---|
| 224 | backgroundColor: [
|
---|
| 225 | 'rgba(255, 99, 132, 0.2)',
|
---|
| 226 | 'rgba(54, 162, 235, 0.2)',
|
---|
| 227 | 'rgba(255, 206, 86, 0.2)',
|
---|
| 228 | 'rgba(75, 192, 192, 0.2)',
|
---|
| 229 | 'rgba(153, 102, 255, 0.2)',
|
---|
| 230 | 'rgba(255, 159, 64, 0.2)'
|
---|
| 231 | ],
|
---|
| 232 | borderColor: [
|
---|
| 233 | 'rgba(255, 99, 132, 1)',
|
---|
| 234 | 'rgba(54, 162, 235, 1)',
|
---|
| 235 | 'rgba(255, 206, 86, 1)',
|
---|
| 236 | 'rgba(75, 192, 192, 1)',
|
---|
| 237 | 'rgba(153, 102, 255, 1)',
|
---|
| 238 | 'rgba(255, 159, 64, 1)'
|
---|
| 239 | ],
|
---|
| 240 | borderWidth: 1
|
---|
| 241 | }]
|
---|
| 242 | },
|
---|
| 243 | options: {
|
---|
| 244 | scales: {
|
---|
| 245 | yAxes: [{
|
---|
| 246 | ticks: {
|
---|
| 247 | beginAtZero: true
|
---|
| 248 | }
|
---|
| 249 | }]
|
---|
| 250 | }
|
---|
| 251 | }
|
---|
| 252 | });
|
---|
| 253 | </script>
|
---|
| 254 | </body>
|
---|
| 255 | </html>
|
---|