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

39 lines
1.4 KiB
PHP
Raw Normal View History

2024-01-07 15:23:41 +00:00
<div>
<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="gap-2 border border-transparent cursor-pointer box group" x-data
x-on:click="goto('{{ $project->uuid }}')">
<a class="flex flex-col flex-1 mx-6 hover:no-underline"
href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}">
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>
</a>
<div class="flex items-center">
2024-03-24 15:00:25 +00:00
<a class="mx-4 font-bold hover:underline dark:hover:no-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;
}
</script>
2024-01-07 15:23:41 +00:00
</div>