source: resources/views/employees.blade.php@ 6dec591

main
Last change on this file since 6dec591 was cf84baa, checked in by bube-ristovska <ristovska725@…>, 9 months ago

Added querries half done

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