@extends('layouts.app') @section('content')

Today's Tasks

{{ \Carbon\Carbon::today()->format('l, F jS, Y') }}

@foreach([ ['id' => 'todo', 'title' => 'To Do', 'tasks' => $todo, 'color' => 'bg-gray-100 border-gray-200', 'badge' => 'bg-gray-200 text-gray-800'], ['id' => 'doing', 'title' => 'Doing', 'tasks' => $doing, 'color' => 'bg-blue-50 border-blue-100', 'badge' => 'bg-blue-200 text-blue-800'], ['id' => 'done', 'title' => 'Done', 'tasks' => $done, 'color' => 'bg-green-50 border-green-100', 'badge' => 'bg-green-200 text-green-800'], ['id' => 'tomorrow', 'title' => 'Tomorrow', 'tasks' => $tomorrow, 'color' => 'bg-purple-50 border-purple-100', 'badge' => 'bg-purple-200 text-purple-800'] ] as $column)

{{ $column['title'] }}

{{ $column['tasks']->count() }}
@foreach($column['tasks'] as $task)
Routine

{{ $task->template->title ?? 'Deleted Template' }}

@if($task->template && $task->template->description)

{{ $task->template->description }}

@endif
@endforeach
@endforeach
@endsection @push('scripts') @endpush