coolify/resources/views/source/all.blade.php

39 lines
1.7 KiB
PHP
Raw Normal View History

2023-06-12 22:02:10 +02:00
<x-layout>
<h1>Sources</h1>
2023-06-16 12:35:40 +02:00
<div class="pt-2 pb-10 ">All Sources</div>
2023-06-14 12:48:29 +02:00
<div class="grid gap-2 lg:grid-cols-2">
2023-06-12 22:02:10 +02:00
@forelse ($sources as $source)
@if ($source->getMorphClass() === 'App\Models\GithubApp')
<a class="flex gap-4 text-center hover:no-underline box group"
href="{{ route('source.github.show', ['github_app_uuid' => data_get($source, 'uuid')]) }}">
<x-git-icon class="text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
<div class="group-hover:text-white">
<div>{{ $source->name }}</div>
2023-06-13 10:59:27 +02:00
@if (is_null($source->app_id))
<span class="text-error">Not registered</span>
@endif
2023-06-12 22:02:10 +02:00
</div>
2023-06-13 10:59:27 +02:00
2023-06-12 22:02:10 +02:00
</a>
@endif
@if ($source->getMorphClass() === 'App\Models\GitlabApp')
<a class="flex gap-4 text-center hover:no-underline box group"
href="{{ route('source.gitlab.show', ['gitlab_app_uuid' => data_get($source, 'uuid')]) }}">
<x-git-icon class="text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
<div class="group-hover:text-white">
<div>{{ $source->name }}</div>
2023-06-13 10:59:27 +02:00
@if (is_null($source->app_id))
<span class="text-error">Not registered</span>
@endif
2023-06-12 22:02:10 +02:00
</div>
</a>
@endif
@empty
<div>
<div>No sources found.</div>
<x-use-magic-bar />
</div>
@endforelse
</div>
</x-layout>