2024-01-07 15:23:41 +00:00
|
|
|
<div>
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
|
|
|
Projects | Coolify
|
|
|
|
</x-slot>
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex gap-2">
|
2024-03-19 14:37:16 +00:00
|
|
|
<h1>Projects</h1>
|
2024-03-22 13:47:36 +00:00
|
|
|
<x-modal-input buttonTitle="+ Add" title="New Project">
|
|
|
|
<livewire:project.add-empty />
|
|
|
|
</x-modal-input>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
2024-03-20 14:46:59 +00:00
|
|
|
<div class="subtitle">All your projects are here.</div>
|
2023-06-14 10:48:29 +00:00
|
|
|
<div class="grid gap-2 lg:grid-cols-2">
|
2024-03-22 10:34:15 +00:00
|
|
|
@forelse ($projects as $project)
|
2024-05-06 12:33:45 +00:00
|
|
|
<div class="box group" x-data x-on:click="goto('{{ $project->uuid }}')">
|
2024-06-24 16:33:01 +00:00
|
|
|
<div class="flex flex-col justify-center flex-1 mx-6"
|
2024-06-24 16:41:44 +00:00
|
|
|
onclick="gotoProject('{{ $project->uuid }}','{{ $project->default_environment() }}')">
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="box-title">{{ $project->name }}</div>
|
|
|
|
<div class="box-description ">
|
2024-03-22 10:34:15 +00:00
|
|
|
{{ $project->description }}</div>
|
2024-06-24 16:33:01 +00:00
|
|
|
</div>
|
2024-05-06 12:33:45 +00:00
|
|
|
<div class="flex items-center justify-center gap-2 pt-4 pb-2 mr-4 text-xs lg:py-0 lg:justify-normal">
|
2024-03-25 10:33:38 +00:00
|
|
|
<a class="mx-4 font-bold hover:underline"
|
2024-03-22 10:34:15 +00:00
|
|
|
href="{{ route('project.edit', ['project_uuid' => data_get($project, 'uuid')]) }}">
|
2024-03-24 15:00:25 +00:00
|
|
|
Settings
|
2023-10-10 08:56:11 +00:00
|
|
|
</a>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
2024-03-22 10:34:15 +00:00
|
|
|
</div>
|
|
|
|
@empty
|
|
|
|
<div>
|
|
|
|
<div>No project found.</div>
|
|
|
|
</div>
|
|
|
|
@endforelse
|
2023-05-24 13:47:04 +00:00
|
|
|
</div>
|
2024-03-22 10:34:15 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
function goto(uuid) {
|
|
|
|
window.location.href = '/project/' + uuid;
|
|
|
|
}
|
2024-06-24 16:33:01 +00:00
|
|
|
|
|
|
|
function gotoProject(uuid, environment) {
|
|
|
|
if (!environment) {
|
|
|
|
window.location.href = '/project/' + uuid;
|
|
|
|
}
|
|
|
|
window.location.href = '/project/' + uuid + '/' + environment;
|
|
|
|
}
|
2024-03-22 10:34:15 +00:00
|
|
|
</script>
|
2024-01-07 15:23:41 +00:00
|
|
|
</div>
|