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) { $isGitlab = $source->getMorphClass() === 'App\\Models\\GitlabApp'; return [ 'name' => $source->name, 'provider' => match ($source->getMorphClass()) { 'App\\Models\\GithubApp' => 'GitHub', 'App\\Models\\GiteaApp' => 'Gitea', default => 'GitLab', }, 'organization' => $isGitlab ? $source->group_name : $source->organization, 'status' => $source->isConnected() ? 'Connected' : 'Setup incomplete', ]; })->values(); @endphp
@include('livewire.shared.list-search-controls', ['placeholder' => 'Search sources'])
Source
Provider
Status
@foreach ($sources as $source) @php [$provider, $organization, $href] = match ($source->getMorphClass()) { 'App\\Models\\GithubApp' => ['GitHub', $source->organization, route('source.github.show', ['github_app_uuid' => $source->uuid])], 'App\\Models\\GiteaApp' => ['Gitea', $source->organization, route('source.gitea.show', ['gitea_app_uuid' => $source->uuid])], default => ['GitLab', $source->group_name, 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