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