@php $lifecycleEventsExportRows = []; @endphp

Guest lifecycle timeline

@forelse($this->paginatedLifecycleEvents as $index => $event) @php $startTime = isset($event['starttime']) ? \Carbon\Carbon::createFromTimestamp($event['starttime']) : null; $endTime = isset($event['endtime']) && $event['endtime'] > 0 ? \Carbon\Carbon::createFromTimestamp($event['endtime']) : null; $duration = $event['duration'] ?? null; $eventUpid = $event['upid'] ?? $event['timestamp'] ?? ''; $eventKey = md5($eventUpid . ($event['starttime'] ?? '')); $isExpanded = in_array($eventUpid, $this->expandedTaskUpids ?? []); $eventColorMap = [ 'start' => 'text-success', 'shutdown' => 'text-danger', 'reboot' => 'text-info', 'reset' => 'text-warning', 'backup' => 'text-purple-200', ]; $eventColor = $eventColorMap[$event['type']] ?? 'text-base/70'; $lifecycleEventsExportRows[] = [ 'type' => $event['label'] ?? 'N/A', 'status' => ucfirst($event['status'] ?? '-'), 'start_time' => $startTime ? $startTime->format('M d, Y H:i:s') : '-', 'end_time' => $endTime ? $endTime->format('M d, Y H:i:s') : '-', 'duration' => $duration !== null ? $this->formatUptime($duration) : '-', ]; @endphp @empty @endforelse
Type
Status
Start Time
End Time
Duration
{{ $event['label'] ?? 'N/A' }} @if(isset($event['status'])) @if(strtolower($event['status']) === 'ok') Success @elseif(strtolower($event['status']) === 'running') Running @else Failure @endif @else - @endif @if($startTime)
{{ $startTime->format('M d, Y') }}
{{ $startTime->format('H:i:s') }}
@else - @endif
@if($endTime)
{{ $endTime->format('M d, Y') }}
{{ $endTime->format('H:i:s') }}
@else - @endif
@if($duration !== null) {{ $this->formatUptime($duration) }} @else - @endif

Event Information

Type {{ $event['original_type'] ?? 'N/A' }}
Status {{ ucfirst($event['status'] ?? 'Unknown') }}
Event Type {{ $event['label'] ?? 'N/A' }}
@if(isset($event['upid']))
Task ID {{ str_replace([':root@pam!paymenter:', ':root@pam:'], '', $event['upid']) }}
@endif

No lifecycle events available

Lifecycle events will appear here as operations are performed on the server.

@php $lifecycleTotalCount = count($this->chartEvents); @endphp @if($lifecycleTotalCount > 0)
{{-- Records per page selector --}}
per page
{{-- Page info and navigation --}} @php $lifecycleTotalPages = $this->lifecycleEventsTotalPages; $lifecycleCurrentPage = $lifecycleEventsCurrentPage; @endphp
Showing {{ (($lifecycleCurrentPage - 1) * $lifecycleEventsPerPage) + 1 }} - {{ min($lifecycleCurrentPage * $lifecycleEventsPerPage, $lifecycleTotalCount) }} of {{ $lifecycleTotalCount }} events @if($lifecycleTotalPages > 1)
{{-- First page --}} {{-- Previous page --}} {{-- Page numbers --}} @php $lifecycleStartPage = max(1, $lifecycleCurrentPage - 2); $lifecycleEndPage = min($lifecycleTotalPages, $lifecycleCurrentPage + 2); @endphp @if($lifecycleStartPage > 1) @if($lifecycleStartPage > 2) ... @endif @endif @for($i = $lifecycleStartPage; $i <= $lifecycleEndPage; $i++) @endfor @if($lifecycleEndPage < $lifecycleTotalPages) @if($lifecycleEndPage < $lifecycleTotalPages - 1) ... @endif @endif {{-- Next page --}} {{-- Last page --}}
@endif
@endif