You've already forked Atomcms-edit
c53a5a8a2c
- Converted all views from Dusk components (x-content.content-card, x-form.*) to inline Hubbly style - All pages use consistent card pattern: rounded-lg, gradient headers, color-mix borders - Added Hubbly-style homepage with 2-column layout, login card, swiper news carousel - Rewrote navigation with Alpine.js dropdowns, CSS variable colors, Hubbly assets - Updated profile page with Hubbly cards, fixed data bugs (friend/guild relationships) - Rewrote register page to match Hubbly layout: banner header, avatar preview with Frank GIF, 2-column form, avatar carousel selector, border-4 inputs - Rewrote login, settings, help center, radio, applications, utility pages - All colors use CSS variables controlled by Filament theme editor - Added Hubbly assets: banner, Frank GIF, navigation icons, online badge - Removed all dependencies on x-content.* and x-form.* components
74 lines
3.3 KiB
PHP
Executable File
74 lines
3.3 KiB
PHP
Executable File
<x-app-layout>
|
|
@push('title', __('Session logs'))
|
|
|
|
<div class="col-span-12 flex flex-col gap-y-3 md:col-span-3">
|
|
<x-user.settings.settings-navigation />
|
|
</div>
|
|
|
|
<div class="col-span-12 flex flex-col gap-y-3 md:col-span-9">
|
|
<div class="rounded-lg overflow-hidden" style="background-color: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
<div class="flex items-center gap-3 p-3" style="background: linear-gradient(140deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, black) 100%);">
|
|
<div>
|
|
<h1 class="text-white font-bold text-lg">{{ __('Session logs') }}</h1>
|
|
<p class="text-xs" style="color: rgba(255,255,255,0.8)">{{ __('Keep an eye on all your active sessions') }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="p-4">
|
|
<div class="overflow-hidden overflow-x-auto rounded-lg" style="border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
<table class="min-w-full text-sm divide-y" style="border-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
<thead style="background-color: color-mix(in srgb, var(--color-text-muted) 5%, transparent);">
|
|
<tr>
|
|
<th class="whitespace-nowrap px-4 py-3 text-left font-medium" style="color: var(--color-text);">
|
|
{{ __('IP') }}
|
|
</th>
|
|
<th class="whitespace-nowrap px-4 py-3 text-left font-medium" style="color: var(--color-text);">
|
|
{{ __('IP Current Device') }}
|
|
</th>
|
|
<th class="whitespace-nowrap px-4 py-3 text-left font-medium" style="color: var(--color-text);">
|
|
{{ __('Is Desktop') }}
|
|
</th>
|
|
<th class="whitespace-nowrap px-4 py-3 text-left font-medium" style="color: var(--color-text);">
|
|
{{ __('Platform') }}
|
|
</th>
|
|
<th class="whitespace-nowrap px-4 py-3 text-left font-medium" style="color: var(--color-text);">
|
|
{{ __('Browser') }}
|
|
</th>
|
|
<th class="whitespace-nowrap px-4 py-3 text-left font-medium" style="color: var(--color-text);">
|
|
{{ __('Last Activity') }}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class="divide-y" style="border-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
@forelse ($logs as $log)
|
|
<tr>
|
|
<td class="whitespace-nowrap px-4 py-3 font-medium" style="color: var(--color-text);">
|
|
{{ $log->ip_address }}
|
|
</td>
|
|
<td class="px-4 py-3" style="color: var(--color-text-muted);">
|
|
{{ $log->is_current_device ? 'true' : 'false' }}</td>
|
|
<td class="px-4 py-3" style="color: var(--color-text-muted);">
|
|
{{ $log->agent['is_desktop'] ? 'true' : 'false' }}</td>
|
|
<td class="px-4 py-3" style="color: var(--color-text-muted);">{{ $log->agent['platform'] }}
|
|
</td>
|
|
<td class="px-4 py-3" style="color: var(--color-text-muted);">{{ $log->agent['browser'] }}</td>
|
|
<td class="whitespace-nowrap px-4 py-3" style="color: var(--color-text-muted);">
|
|
{{ $log->last_active }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td class="whitespace-nowrap px-4 py-3 text-center" style="color: var(--color-text-muted);"
|
|
colspan="6">
|
|
{{ __('No session logs found') }}
|
|
</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|