mirror of
https://github.com/10h30/MoveMate.git
synced 2026-07-11 18:56:06 +09:00
Implemented TaskController
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
<x-layout>
|
||||
<x-slot:heading>Task Page</x-slot:heading>
|
||||
|
||||
@if (session('success'))
|
||||
<div class="bg-green-500 text-white p-3 rounded mb-4">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@foreach ($tasks as $task)
|
||||
<div class="block border-2 border-gray-500 p-2">
|
||||
|
||||
@@ -13,5 +13,12 @@
|
||||
</div>
|
||||
<div class="mt-5">
|
||||
<a href="/task/{{ $task->id }}/edit" class="text-sm text-blue-600 dark:text-blue-500 hover:underline">Edit</a>
|
||||
<form action="/task/{{ $task->id }}" method="POST" class="d-inline">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<a href="javascript:void(0)" onclick="if(confirm('Are you sure you want to delete this task?')){this.closest('form').submit()}">
|
||||
Delete
|
||||
</a>
|
||||
</form>
|
||||
</div>
|
||||
</x-layout>
|
||||
Reference in New Issue
Block a user