@extends('admin.layout') @section('title', __('admin.console.title').' · '.__('admin.brand')) @section('content') @php $groups = collect($presets)->groupBy('group'); $last = $history[0] ?? null; @endphp
COASTER WORLD DATA · {{ $platformVersion }}

{{ __('admin.console.title') }}

{{ __('admin.console.subtitle') }}

{{ __('admin.console.open_pilot') }}
{{ __('admin.console.security_title') }} {{ __('admin.console.security_hint') }}

{{ __('admin.console.terminal_title') }}

{{ __('admin.console.terminal_hint') }}

ALLOWLIST
@foreach ($groups as $group => $commands)
{{ __('admin.console.groups.'.$group) }}
@foreach ($commands as $preset) @endforeach
@endforeach
@csrf
{{ __('admin.console.allowed_hint') }}
@if ($last)
EXIT {{ $last['exit_code'] ?? '?' }} {{ $last['command'] ?? '—' }}
{{ $last['duration_ms'] ?? 0 }} ms · {{ $last['executed_at'] ?? '—' }}
{{ $last['output'] ?? '[no output]' }}
@else
{{ __('admin.console.no_history') }}
@endif

{{ __('admin.console.history_title') }}

{{ __('admin.console.history_hint') }}

@if ($history !== [])
@csrf @method('DELETE')
@endif
@if ($history === [])
{{ __('admin.console.no_history') }}
@else
@foreach ($history as $entry)
first) open @endif> {{ strtoupper($entry['status'] ?? 'unknown') }} {{ $entry['command'] ?? '—' }}
{{ $entry['output'] ?? '[no output]' }}
@endforeach
@endif
@endsection