@props(['container', 'canOperate' => true]) @php // container state -> status-pill status (single source of truth for both the host Docker page // and the per-server Docker tab). $c = $container; $pill = match (true) { $c['state'] === 'running' => 'online', $c['state'] === 'paused' => 'warning', in_array($c['state'], ['created', 'restarting'], true) => 'pending', default => 'offline', // exited / dead / removing }; @endphp {{-- wire:click targets (viewLogs / action) resolve to the enclosing Livewire component — both Docker\Index and Servers\ServerDocker expose the same method names, so the row works in either. --}}

{{ $c['name'] }}

{{ $c['image'] }}

@if ($canOperate)
{{ __('docker.logs') }} @if ($c['state'] === 'running') {{ __('docker.restart') }} {{ __('docker.stop') }} @else {{ __('docker.start') }} @endif
@endif