minor
This commit is contained in:
parent
bd331997f5
commit
690a3babee
@ -24,7 +24,7 @@ public function popup()
|
|||||||
|
|
||||||
$logs->each(function ($log) {
|
$logs->each(function ($log) {
|
||||||
$log->category_name = Category::from($log->category)->name;
|
$log->category_name = Category::from($log->category)->name;
|
||||||
$log->activity_name = Str::of(Activity::from($log->activity)->name)->slug('-')->replace('-', ' ')->title();
|
$log->activity_name = Str::of(Activity::from($log->activity)->name)->slug('-')->replace('-', ' ')->ucfirst();
|
||||||
if (filled($log->user_agent)) {
|
if (filled($log->user_agent)) {
|
||||||
$log->browser = "Browser: {$log->browser_name}\nDevice: {$log->device_type}\nPlatform: {$log->platform}";
|
$log->browser = "Browser: {$log->browser_name}\nDevice: {$log->device_type}\nPlatform: {$log->platform}";
|
||||||
} else {
|
} else {
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
|
|
||||||
return new class extends Migration
|
return new class extends Migration
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Run the migrations
|
|
||||||
*/
|
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('user_agents', static function (Blueprint $table) {
|
Schema::create('user_agents', static function (Blueprint $table) {
|
||||||
|
@ -3,6 +3,17 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<table class="table table-sm table-striped">
|
<table class="table table-sm table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Time</th>
|
||||||
|
<th>User</th>
|
||||||
|
<th>Activity</th>
|
||||||
|
<th>Remarks</th>
|
||||||
|
<th>IP</th>
|
||||||
|
<th>Browser</th>
|
||||||
|
<th>Url</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
@foreach ($logs as $log)
|
@foreach ($logs as $log)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $log->log_time }}</td>
|
<td>{{ $log->log_time }}</td>
|
||||||
@ -14,7 +25,6 @@
|
|||||||
<a target="_blank" href="{{ 'https://ipinfo.io/'.$log->ip_addr }}">{{ $log->ip_addr }}</a>
|
<a target="_blank" href="{{ 'https://ipinfo.io/'.$log->ip_addr }}">{{ $log->ip_addr }}</a>
|
||||||
@endisset
|
@endisset
|
||||||
</td>
|
</td>
|
||||||
<td>{{ $log->category_name }}</td>
|
|
||||||
<td>
|
<td>
|
||||||
@isset($log->browser)
|
@isset($log->browser)
|
||||||
@include('_partials._img-tooltip', ['src' => asset('imgs/browser_64.png'), 'tip' => $log->browser, 'class' => 'msg-icon'])
|
@include('_partials._img-tooltip', ['src' => asset('imgs/browser_64.png'), 'tip' => $log->browser, 'class' => 'msg-icon'])
|
||||||
|
Loading…
Reference in New Issue
Block a user