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

{{ $todo->title }}

Priority: {{ ucfirst($todo->priority) }}
{!! nl2br(e($todo->description)) !!}
@can('update', $todo)
@csrf @method('PATCH')
@if($todo->status !== App\Models\Todo::STATUS_COMPLETED)
@csrf
@endif @else
You can only update tasks that are assigned to you. If this task was assigned to you, please contact support.
@endcan

Updates

@csrf
@foreach($todo->updates as $u)
{{ $u->user->name }} · {{ $u->created_at->diffForHumans() }}
{{ $u->content }}
@endforeach
@endsection