{{-- Rendered twice: in the desktop sidebar footer and in the mobile top bar. `.visible` pauses polling for the copy hidden by the current breakpoint (a display:none element has no box). --}}
$variant === 'sidebar'])> @if ($this->deploymentCount > 0) @php $deploymentLabel = $this->deploymentCount.' '.Str::plural('deployment', $this->deploymentCount); @endphp {{-- Deployment list: opens beside the sidebar on desktop. On mobile the root is not positioned, so the list anchors to the sticky top bar and spans its width. --}}
$variant === 'sidebar', 'inset-x-4 top-full mt-2' => $variant === 'mobile', ])>
@foreach ($this->deployments as $deployment) @php $deploymentStatus = $deployment->status === 'in_progress' ? 'In progress' : 'Queued'; $deploymentStatusType = $deployment->status === 'in_progress' ? 'warning' : 'neutral'; $projectName = $deployment->application?->environment?->project?->name; $environmentName = $deployment->application?->environment?->name; $environmentPath = collect([$projectName, $environmentName])->filter()->join(' / '); @endphp
@if ($deployment->status === 'in_progress') @else @endif

{{ $deployment->application_name }}

@if ($environmentPath !== '')

{{ $environmentPath }}

@endif

{{ $deployment->server_name ?: '-' }} @if ($deployment->pull_request_id) ยท PR #{{ $deployment->pull_request_id }} @endif

@endforeach
@if ($variant === 'sidebar') @else @endif @endif