{{ $task->title }}

{{ $task->status_label }} {{ $task->priority_label }} @if($task->phase) {{ $task->phase->name }} @endif
@can('edit tasks', $task) Editar @endcan
@foreach($statusOptions as $value => $label) @endforeach

Descripción

@if($task->description)
{{ $task->description }}
@else

Sin descripción

@endif

Subtareas ({{ $task->subtasks->count() }})

@can('create tasks', $task)
@endcan
@if($task->subtasks->isEmpty())
No hay subtareas. {{ auth()->user()->can('create tasks', $task) ? 'Crea la primera arriba.' : '' }}
@else
@foreach($task->subtasks as $subtask)
{{ $subtask->title }}
@can('delete tasks', $subtask) @endcan
@endforeach
@endif

Comentarios

@forelse($task->comments->where('parent_id', null) as $comment)
{{ strtoupper($comment->user->name[0]) }}
{{ $comment->user->name }} {{ $comment->created_at->diffForHumans() }} @if($comment->user_id === auth()->id() || auth()->user()->can('manage all tasks')) @endif
@if($editing)
@else
{{ $comment->body }}
@endif @if($comment->replies->isNotEmpty())
@foreach($comment->replies as $reply)
{{ strtoupper($reply->user->name[0]) }}
{{ $reply->user->name }} {{ $reply->created_at->diffForHumans() }}
{{ $reply->body }}
@endforeach
@endif
@empty
No hay comentarios aún
@endforelse

Información

Proyecto
{{ $task->project->name }}
@if($task->phase)
Fase
{{ $task->phase->name }}
@endif @if($task->parent_task_id) @endif
Creada por
{{ $task->creator->name }}
Fecha creación
{{ $task->created_at->format('d/m/Y H:i') }}
@if($task->due_date)
Vence
{{ $task->due_date->format('d/m/Y') }} @if($task->is_overdue) (Vencida) @endif @if($task->is_due_today) (Hoy) @endif
@endif @if($task->start_date)
Inicio
{{ $task->start_date->format('d/m/Y') }}
@endif @if($task->completed_at)
Completada
{{ $task->completed_at->format('d/m/Y H:i') }}
Completada por
{{ $task->completer->name ?? '—' }}
@endif @if($task->estimated_hours || $task->actual_hours)
Horas
{{ $task->estimated_hours ? $task->estimated_hours . 'h estimadas' : '' }} @if($task->estimated_hours && $task->actual_hours) / @endif {{ $task->actual_hours ? $task->actual_hours . 'h reales' : '' }}
@endif

Asignación

@if($task->assignee)
{{ strtoupper($task->assignee->name[0]) }}

{{ $task->assignee->name }}

{{ $task->assignee->email }}

@else

Sin asignar

@endif @can('assign tasks', $task)
@endcan
@if($task->subtasks->count() > 0)

Progreso

Completado {{ $task->progress }}%
{{ $task->subtasks->where('status', 'completed')->count() }} de {{ $task->subtasks->count() }} subtareas completadas
@endif
@push('scripts') @endpush