lasthourcloud/resources/views/livewire/project/index.blade.php

48 lines
1.7 KiB
PHP
Raw Normal View History

2024-01-07 15:23:41 +00:00
<div>
2024-06-07 09:01:10 +00:00
<x-slot:title>
Projects | Coolify
</x-slot>
<div class="flex gap-2">
2024-03-19 14:37:16 +00:00
<h1>Projects</h1>
<x-modal-input buttonTitle="+ Add" title="New Project">
<livewire:project.add-empty />
</x-modal-input>
</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)
<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"
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>
<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>
</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>