@extends('layout') @section('content') @php $statusTone = static fn (string $value): string => match ($value) { 'concluida' => 'ok', 'bloqueada', 'cancelada' => 'bad', 'em_andamento' => 'info', default => 'muted', }; $contextLinks = []; if (!empty($task->system_id)) { $contextLinks[] = 'Solução: '.e($task->system_name ?: '#'.$task->system_id).''; } if (!empty($task->project_id)) { $contextLinks[] = 'Projeto: '.e($task->project_name ?: '#'.$task->project_id).''; } if (!empty($task->client_id)) { $contextLinks[] = 'Cliente: '.e($task->client_name ?: '#'.$task->client_id).''; } if (!empty($task->lead_id)) { $contextLinks[] = 'Lead: '.e($task->lead_name ?: '#'.$task->lead_id).''; } if (!empty($task->ticket_id)) { $contextLinks[] = 'Chamado: #'.$task->ticket_id.' · '.e($task->ticket_subject ?: 'Solicitação').''; } if (!empty($task->meeting_id)) { $contextLinks[] = 'Reunião: '.e($task->meeting_title ?: '#'.$task->meeting_id).''; } if (!empty($task->transaction_id)) { $contextLinks[] = 'Pagamento: #'.$task->transaction_id.''; } @endphp
@include('partials.context-back')
{{ \App\Models\Task::statusLabel($task->status) }} {{ \App\Models\Task::priorityLabel($task->priority) }}

{{ $task->title }}

Tarefa #{{ $task->id }} · criada em {{ datetime_br($task->created_at) }}

editEditar checklistTodas as tarefas

Execução

{{ (int) $task->progress }}%
@php $taskChecklist = is_array($task->checklist) ? $task->checklist : (json_decode((string) $task->checklist, true) ?: []); @endphp @if ($taskChecklist !== [])

Checklist

@foreach ($taskChecklist as $item) @endforeach
@endif @if (!empty($task->description))
{!! \App\Services\RichTextSanitizer::clean((string) $task->description) !!}
@endif
@csrf

history Histórico

{{ count($events) }} registro(s)
@if (count($events) === 0)

Nenhuma alteração registrada.

@else @foreach ($events as $event)
history
{{ $event->description }}{{ $event->user_name ?: 'Sistema' }} · {{ datetime_br($event->created_at, 'd/m/Y H:i') }}
@endforeach @endif
@endsection