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

41 lines
1.5 KiB
PHP
Raw Normal View History

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