<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\TaskTemplateController;
use App\Http\Controllers\TaskController;

Route::get('/', [DashboardController::class, 'index'])->name('dashboard');

Route::get('/tasks/today', [TaskController::class, 'today'])->name('tasks.today');
Route::post('/tasks/reorder', [TaskController::class, 'reorder'])->name('tasks.reorder');
Route::patch('/tasks/{task}/status', [TaskController::class, 'updateStatus'])->name('tasks.status.update');

Route::resource('templates', TaskTemplateController::class)->except(['show']);
