@unless ($compact)

@lang('modules.restaurant.impersonationAuditLog')

@lang('modules.restaurant.impersonationAuditLogDescription')

@endunless
! $compact, 'pt-4'])> @unless ($compact)
@endunless
@unless ($restaurantId) @endunless @forelse ($sessions as $session) @unless ($restaurantId) @endunless @empty @endforelse
@lang('modules.restaurant.sessionStarted') @lang('modules.billing.restaurant') @lang('modules.restaurant.superadmin') @lang('modules.restaurant.impersonatedAs') @lang('modules.restaurant.sessionDuration') @lang('app.status') @lang('app.action')
@include('common.date-time-display', ['date' => $session->started_at]) {{ $session->restaurant?->name ?? __('modules.report.notAvailable') }}
{{ $session->superadmin_name }}
{{ $session->superadmin_email }}
{{ $session->impersonated_user_name }}
{{ $session->impersonated_user_email }}
@if ($session->durationInSeconds() !== null) {{ gmdate('H:i:s', $session->durationInSeconds()) }} @else {{ __('modules.report.notAvailable') }} @endif @if ($session->isActive()) @lang('modules.restaurant.sessionActive') @else @lang('modules.restaurant.sessionEnded') @endif @lang('modules.restaurant.viewSession')
@lang('modules.restaurant.noImpersonationActivity')
@if ($sessions->hasPages())
{{ $sessions->links() }}
@endif
@lang('modules.restaurant.impersonationSessionDetails') @if ($selectedSession)

@lang('modules.restaurant.superadmin')

{{ $selectedSession->superadmin_name }}

{{ $selectedSession->superadmin_email }}

@lang('modules.restaurant.impersonatedAs')

{{ $selectedSession->impersonated_user_name }}

{{ $selectedSession->impersonated_user_email }}

@lang('modules.restaurant.sessionStarted')

@include('common.date-time-display', ['date' => $selectedSession->started_at])

@lang('modules.restaurant.sessionEnded')

@if ($selectedSession->ended_at) @include('common.date-time-display', ['date' => $selectedSession->ended_at]) @else @lang('modules.restaurant.sessionActive') @endif

@lang('modules.report.ipAddress')

{{ $selectedSession->ip_address ?? __('modules.report.notAvailable') }}

@lang('modules.restaurant.sessionActions')

{{ $selectedSession->actions->count() }}

@forelse ($selectedSession->actions as $action) @empty @endforelse
@lang('app.dateTime') @lang('modules.restaurant.activity')
@include('common.date-time-display', ['date' => $action->created_at]) @if ($action->description)
{{ $action->description }}
@if (! str_contains($action->description, $action->path))
{{ $action->path }}
@endif @else
{{ $action->path }}
@if ($action->route_name)
{{ $action->route_name }}
@endif @endif
@lang('modules.restaurant.noSessionActions')
@endif
@lang('app.close')