@extends('backend.layouts.app') {{-- Estilos críticos en el head para evitar FOUC --}} @push('after-styles') @endpush {{-- Título personalizado mejorado --}} @section('page-title')

Detalles del Trámite #{{ $tramite->id }}

Información completa del trámite seleccionado

@push('after-scripts') @endpush @endsection @section('content') @stack('before-styles') @vite(['resources/sass/tramite-details.scss']) @stack('after-styles')
@if (session('success'))
{{ session('success') }}
@endif
Información Principal
ID Trámite
#{{ $tramite->id }}
Tipo Producto
@if($tramite->productoEspecifico && $tramite->productoEspecifico->tipoProducto) {{ $tramite->productoEspecifico->tipoProducto->nombre }} @else {{ $tramite->tipoTramite->tiposProducto->pluck('nombre')->join(', ') ?? '-' }} @endif
Tipo Trámite
{{ $tramite->tipoTramite->nombre ?? '-' }}
Subtipo
{{ $tramite->subtipoTramite->nombre ?? '-' }}
Estado Actual
@php $estadoClass = 'default'; $estadoNombre = $tramite->estadoTramite->nombre ?? 'Sin Estado'; if (str_contains(strtolower($estadoNombre), 'auto')) $estadoClass = 'estado-auto'; elseif (str_contains(strtolower($estadoNombre), 'resolutiva')) $estadoClass = 'estado-resolutiva'; elseif (str_contains(strtolower($estadoNombre), 'ticket')) $estadoClass = 'estado-ticket'; elseif (str_contains(strtolower($estadoNombre), 'radicado')) $estadoClass = 'estado-radicado'; @endphp {{ $estadoNombre }}
Marca
{{ $tramite->marca ?: '-' }}
Unidad de Negocio
{{ $tramite->unidad_de_negocio ?: '-' }}
Responsable
{{ $tramite->responsable->name ?? '-' }}
Detalles del Producto
Nombre Producto
{{ $tramite->nombre_producto ?: '-' }}
Expediente
{{ $tramite->expediente ?: '-' }}
N° Registro
{{ $tramite->num_registro ?: '-' }}
Ingrediente Principal
{{ $tramite->ingrediente_principal ?: '-' }}
Forma Farmacéutica
{{ $tramite->formaFarmaceutica->nombre ?? '-' }}
Concentración
{{ $tramite->concentracion ?: '-' }}
Fechas Importantes
Fecha Entrega del Dossier
{{ $tramite->fecha_planeada_de_entrega_del_dossier ? date('d/m/Y', strtotime($tramite->fecha_planeada_de_entrega_del_dossier)) : '-' }}
Vencimiento Registro
{{ $tramite->fecha_vencimiento_registro ? date('d/m/Y', strtotime($tramite->fecha_vencimiento_registro)) : '-' }}
Máxima Radicación Dossier
{{ $tramite->fecha_maxima_de_radicacion ? date('d/m/Y', strtotime($tramite->fecha_maxima_de_radicacion)) : '-' }}
Inicio Trámite
{{ $tramite->fecha_de_inicio_del_tramite ? date('d/m/Y', strtotime($tramite->fecha_de_inicio_del_tramite)) : '-' }}
Gestión
Etapa
{{ $tramite->etapa->nombre ?? '-' }}
Carga Laboral
{{ $tramite->carga_laboral_en_horas ? $tramite->carga_laboral_en_horas . ' horas' : '-' }}
Estado Registro
{{ $tramite->estadoRegistro->nombre ?? '-' }}
Ticket
{{ $tramite->ticket ?: '-' }}
@if($tramite->radicado || $tramite->fecha_del_radicado || $tramite->llave)
Información de Radicación
Radicado
{{ $tramite->radicado ?: '-' }}
Llave
{{ $tramite->llave ?: '-' }}
Fecha Radicado
{{ $tramite->fecha_del_radicado ? date('d/m/Y', strtotime($tramite->fecha_del_radicado)) : '-' }}
@endif @if($auditLogs && $auditLogs->count() > 0)
Historial de Actividad
@foreach($auditLogs as $log)
@if(!$loop->last)
@endif
{{ strtoupper(substr($log->user_name ?? 'S', 0, 2)) }}
{{ $log->created_at ? $log->created_at->diffForHumans() : 'Fecha no disponible' }}
@if($log->event_description && !in_array($log->event_type, ['state_change', 'assignment_change']))
{!! $log->event_description !!}
@endif
@endforeach @if($auditLogs->count() >= 50)
Mostrando las últimas 50 actividades
@endif
@endif
VOLVER AL LISTADO DESCARGAR EXCEL EDITAR TRÁMITE
@endsection