@extends('layouts.app') @section('title', 'Tasks') @section('content')
@foreach (['' => 'All open', 'today' => 'Today', 'week' => 'This week', 'overdue' => 'Overdue'] as $key => $label) {{ $label }} @endforeach
@forelse ($tasks as $task)
@csrf @method('PUT') {{ $task->title }} {{ $task->assignee?->name }} @if ($task->due_at) · {{ $task->due_at->diffForHumans() }} @endif
{{ ucfirst($task->priority) }}
@empty @endforelse {{ $tasks->links() }}
@can('create', \App\Models\Task::class)
@csrf
@endcan
@endsection