@extends('layouts.app') {{-- Assuming 'layouts.app' is your main layout --}} @php($prefix = auth()->user()->role === 'admin' ? 'admin.' : 'user.') @section('content')

{{ __('Devices') }}

Your Devices

@if (session('success')) @endif @if (session('error')) @endif
@forelse($devices as $device)
{{ $device->name }} Active
{{ $device->device_type ?? 'Unknown Device' }} {{ $device->name ?? 'Unknown Browser' }} Last activity: {{ $device->last_activity ? $device->last_activity->diffForHumans() : 'N/A' }}
@csrf @method('DELETE') Revoke
@empty

You haven't registered any devices yet.

@endforelse
@csrf

{{ __('Register a name for this device') }}

{{ __('Give your current device a recognizable name to easily manage it later.') }}

{{ __('Cancel') }} {{ __('Register Device') }}
@push('scripts') @endpush @endsection