Sources | Coolify

Sources

{{ $sources->count() }} {{ Str::plural('Git source', $sources->count()) }} connected to your team

@can('createAnyResource')
@endcan
@if ($sources->isEmpty()) @else @php $items = $sources->map(function ($source) { $isGithub = $source->getMorphClass() === 'App\\Models\\GithubApp'; return [ 'name' => $source->name, 'provider' => $isGithub ? 'GitHub' : 'GitLab', 'organization' => $isGithub ? $source->organization : $source->group_name, 'status' => $source->isConnected() ? 'Connected' : 'Setup incomplete', ]; })->values(); @endphp
@include('livewire.shared.list-search-controls', ['placeholder' => 'Search sources', 'singular' => 'source', 'plural' => 'sources'])
Source
Provider
Status
@foreach ($sources as $source) @php $isGithub = $source->getMorphClass() === 'App\\Models\\GithubApp'; $provider = $isGithub ? 'GitHub' : 'GitLab'; $organization = $isGithub ? $source->organization : $source->group_name; $href = $isGithub ? route('source.github.show', ['github_app_uuid' => $source->uuid]) : route('source.gitlab.show', ['gitlab_app_uuid' => $source->uuid]); @endphp
{{ $source->name }}
{{ $organization ? "{$provider} · {$organization}" : $provider }}
@endforeach
@include('livewire.shared.list-search-empty', ['label' => 'sources'])
@endif