mirror of
https://github.com/10h30/MoveMate.git
synced 2026-07-11 10:46:08 +09:00
Add Welcome message on the header right
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<x-nav-link href="/register">Register</x-nav-link>
|
||||
@endguest
|
||||
@auth
|
||||
<x-nav-link type="button" href="/task/create">Create new task</x-nav-link>
|
||||
<p class="text-sm text-bold">Welcome back, {{ Auth::user()->name }}</p>
|
||||
<form method="POST" action="/logout">
|
||||
@csrf
|
||||
<x-form-button>Log Out</x-form-button>
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
<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
|
||||
<div class="mb-5">
|
||||
<a class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" href="/task/create">Create new task</a>
|
||||
</div>
|
||||
|
||||
@foreach ($tasks as $task)
|
||||
<div class="block border-2 border-gray-500 p-2">
|
||||
@@ -18,4 +21,6 @@
|
||||
@endforeach
|
||||
|
||||
<div class="mt-2">{{$tasks -> links()}}</div>
|
||||
</x-layout>
|
||||
</x-layout>
|
||||
|
||||
$completedCount = Task::where('completed', true)->count();
|
||||
Reference in New Issue
Block a user