@extends('layouts.app') @section('title', 'Detalhes da geração') @section('content') @php $badge = match($generation->status) {'completed' => 'badge-success', 'failed' => 'badge-danger', 'cancelled' => 'badge-danger', default => 'badge-warning'}; $label = match($generation->status) {'queued' => 'Em fila', 'processing' => 'A gerar', 'completed' => 'Concluído', 'failed' => 'Falhou', 'cancelled' => 'Cancelado', default => $generation->status}; @endphp
{{ $generation->uuid }}
| Campo | Página | Origem | Valor | Estado |
|---|---|---|---|---|
| {{ $field->label }} {{ $field->field_key }} · {{ $field->type }} |
{{ $field->page_number }} | {{ $field->origin }}{{ $field->data_source ? ' · '.$field->data_source : '' }} | {{ in_array($field->type, ['image','signature','initials'], true) ? ($field->value_payload ? 'Imagem' : '—') : ($field->resolved_value ?? '—') }} | {{ $field->validation_status }} |
| Destinatário | Estado | Validade | |
|---|---|---|---|
| {{ $signature->recipient_name }} {{ $signature->recipient_email }} | {{ $signature->status }} | {{ $signature->expires_at?->format('d/m/Y H:i') }} | Abrir |
Ainda não foi iniciada nenhuma tentativa pelo worker.
@else| # | Estado | Início | Duração | Worker | Erro |
|---|---|---|---|---|---|
| {{ $attempt->attempt_number }} | {{ $attempt->status }} | {{ $attempt->started_at?->format('d/m/Y H:i:s') }} | {{ $attempt->duration_ms ? $attempt->duration_ms.' ms' : '—' }} | {{ $attempt->worker ?: '—' }} | {{ $attempt->error_message ?: '—' }} |