2023-06-12 20:02:10 +00:00
|
|
|
<x-layout>
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
2026-02-16 01:54:19 +00:00
|
|
|
Sources | MapleDeploy
|
2024-06-07 09:01:10 +00:00
|
|
|
</x-slot>
|
2025-02-01 20:33:44 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-09-24 19:15:21 +00:00
|
|
|
<h1>Sources</h1>
|
2025-08-26 08:27:31 +00:00
|
|
|
@can('createAnyResource')
|
|
|
|
|
<x-modal-input buttonTitle="+ Add" title="New GitHub App" :closeOutside="false">
|
|
|
|
|
<livewire:source.github.create />
|
|
|
|
|
</x-modal-input>
|
|
|
|
|
@endcan
|
2023-09-24 19:15:21 +00:00
|
|
|
</div>
|
2025-06-30 06:50:17 +00:00
|
|
|
<div class="subtitle">Git sources for your applications.</div>
|
2025-10-07 15:17:31 +00:00
|
|
|
<div class="grid gap-4 lg:grid-cols-2 -mt-1">
|
2023-06-12 20:02:10 +00:00
|
|
|
@forelse ($sources as $source)
|
|
|
|
|
@if ($source->getMorphClass() === 'App\Models\GithubApp')
|
2025-11-28 12:55:54 +00:00
|
|
|
<a class="flex gap-2 text-center hover:no-underline coolbox group"
|
2025-12-17 11:09:13 +00:00
|
|
|
{{ wireNavigate() }}
|
2023-08-11 18:19:42 +00:00
|
|
|
href="{{ route('source.github.show', ['github_app_uuid' => data_get($source, 'uuid')]) }}">
|
2025-06-30 06:50:17 +00:00
|
|
|
{{-- <x-git-icon class="dark:text-white w-8 h-8 mt-1" git="{{ $source->getMorphClass() }}" /> --}}
|
|
|
|
|
<div class="text-left dark:group-hover:text-white flex flex-col justify-center mx-6">
|
2025-01-16 10:04:50 +00:00
|
|
|
<div class="box-title">{{ $source->name }}</div>
|
2023-06-13 08:59:27 +00:00
|
|
|
@if (is_null($source->app_id))
|
2025-05-14 10:43:23 +00:00
|
|
|
<span class="box-description text-error! ">Configuration is not finished.</span>
|
2025-06-30 06:50:17 +00:00
|
|
|
@else
|
|
|
|
|
@if ($source->organization)
|
|
|
|
|
<span class="box-description">Organization: {{ $source->organization }}</span>
|
|
|
|
|
@endif
|
2023-06-13 08:59:27 +00:00
|
|
|
@endif
|
2023-06-12 20:02:10 +00:00
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
@empty
|
|
|
|
|
<div>
|
|
|
|
|
<div>No sources found.</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endforelse
|
|
|
|
|
</div>
|
|
|
|
|
</x-layout>
|