@if ($application->git_based()) @php $canUpdate = auth()->user()->can('update', $application); @endphp @can('update', $application) @if ($isPreviewDeploymentsEnabled) Disable preview deployments @else Enable preview deployments @endif @endcan
@endif @if (count($application->additional_servers) > 0) Preview deployments run on {{ $application->destination->server->name }}. @endif @if ($application->is_github_based()) @isset($rate_limit_remaining) {{ $rate_limit_remaining }} requests remaining @endisset @can('update', $application) Load pull requests @endcan
@forelse ($pull_requests as $pull_request)
#{{ data_get($pull_request, 'number') }}

{{ data_get($pull_request, 'title') }}

Open on GitHub
@can('update', $application) Configure @endcan @can('deploy', $application) Deploy preview @endcan
@empty @endforelse
@endif @if ($application->build_pack === 'dockerimage')
@can('deploy', $application) Deploy preview @endcan
@endif @forelse (data_get($application, 'previews') as $previewName => $preview) @php $previewStatus = str(data_get($preview, 'status')); $previewIsStopped = $previewStatus->startsWith('exited'); @endphp
#{{ data_get($preview, 'pull_request_id') }}

Preview #{{ data_get($preview, 'pull_request_id') }}

@if (count($parameters) > 0) @endif
@if ($application->build_pack === 'dockerimage')
Docker tag
@endif
@empty @endforelse