Skip to content

Commit 024c611

Browse files
committed
Update index.blade.php
1 parent 178662c commit 024c611

File tree

1 file changed

+79
-12
lines changed

1 file changed

+79
-12
lines changed
Lines changed: 79 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,80 @@
1-
<!doctype html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport"
6-
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8-
<title>Document</title>
9-
</head>
10-
<body>
1+
@extends('LaravelUserMonitoring::layouts.master')
112

12-
</body>
13-
</html>
3+
@section('title', 'Action Monitoring')
4+
5+
@section('content')
6+
<div class="mt-7 overflow-x-auto">
7+
<table class="w-full whitespace-nowrap">
8+
<tbody>
9+
@foreach ($actions as $action)
10+
<tr tabindex="0" class="focus:outline-none h-16 border border-gray-100 rounded">
11+
<td>
12+
<div class="flex items-center pl-5">
13+
<p class="text-base font-medium leading-none text-gray-700 mr-2">
14+
{{ $action->table_name }}
15+
</p>
16+
</div>
17+
</td>
18+
<td class="pl-24">
19+
<div class="flex items-center">
20+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
21+
<path stroke-linecap="round" stroke-linejoin="round" d="M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z" />
22+
</svg>
23+
<p class="text-sm leading-none text-gray-600 ml-2">
24+
{{ $action->user->name ?? 'Guest User' }}
25+
</p>
26+
</div>
27+
</td>
28+
<td class="pl-5">
29+
<div class="flex items-center">
30+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
31+
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 11-3 0m3 0a1.5 1.5 0 10-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-9.75 0h9.75" />
32+
</svg>
33+
<p class="text-sm leading-none text-gray-600 ml-2">
34+
{{ $action->action_type }}
35+
</p>
36+
</div>
37+
</td>
38+
<td class="pl-5">
39+
<div class="flex items-center">
40+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
41+
<path stroke-linecap="round" stroke-linejoin="round" d="M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5l-3.9 19.5m-2.1-19.5l-3.9 19.5" />
42+
</svg>
43+
<p class="text-sm leading-none text-gray-600 ml-2">
44+
{{ $action->ip }}
45+
</p>
46+
</div>
47+
</td>
48+
<td class="pl-5">
49+
<div class="flex items-center">
50+
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="30" height="30" viewBox="0 0 50 50">
51+
<path d="M 46 4.867188 L 4 10.117188 L 4 39.882813 L 46 45.132813 Z M 44 7.132813 L 44 24 L 25 24 L 25 9.507813 Z M 23 9.757813 L 23 24 L 6 24 L 6 11.882813 Z M 6 26 L 23 26 L 23 40.242188 L 6 38.117188 Z M 25 26 L 44 26 L 44 42.867188 L 25 40.492188 Z"></path>
52+
</svg>
53+
<p class="text-sm leading-none text-gray-600 ml-2">
54+
{{ $action->platform }}
55+
</p>
56+
</div>
57+
</td>
58+
<td class="pl-5">
59+
<button class="py-3 px-3 text-sm focus:outline-none leading-none text-blue-700 bg-blue-100 rounded">
60+
{{ $action->created_at->format('Y-m-d H:i') }}
61+
</button>
62+
</td>
63+
<td class="pl-4">
64+
<form method="post" action="{{ route('user-monitoring.actions-monitoring-delete', $action->id) }}">
65+
@csrf
66+
@method('DELETE')
67+
68+
<button class="focus:ring-2 focus:ring-offset-2 focus:ring-red-300 text-sm leading-none text-red-600 py-3 px-5 bg-red-100 rounded hover:bg-red-200 focus:outline-none" type="submit">
69+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
70+
<path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />
71+
</svg>
72+
</button>
73+
</form>
74+
</td>
75+
</tr>
76+
@endforeach
77+
</tbody>
78+
</table>
79+
</div>
80+
@endsection

0 commit comments

Comments
 (0)