{{-- --}} Recibo de material @php // Imágenes embebidas en base64 desde disco para que el PDF no dependa de peticiones HTTP (bloqueadas por Cloudflare) $watermarkPath = public_path('img/WATERMARKV5.png'); $watermarkSrc = file_exists($watermarkPath) ? 'data:image/png;base64,' . base64_encode(file_get_contents($watermarkPath)) : ''; $logoHeaderPath = public_path('img/logoheaderTinyVersion.png'); $logoHeaderSrc = file_exists($logoHeaderPath) ? 'data:image/png;base64,' . base64_encode(file_get_contents($logoHeaderPath)) : ''; @endphp

FORMATO ENTREGA Y RECIBO DE MATERIAL
TRANSPORTE - RECOLECCIÓN

CÓDIGO

FR-LG-014

LOGISTICA

FECHA

01-12-2023

VERSIÓN

4

@php $esConductor = in_array(Auth::user()->UsRol, \App\Permisos::CONDUCTOR) || in_array(Auth::user()->UsRol2, \App\Permisos::CONDUCTOR); if ($esConductor) { $fechaMostrar = now()->format('d/m/Y'); } else { $fechaProgSalida = (!empty($Programaciones) && !empty($Programaciones->ProgVehSalida) && $Programaciones->ProgVehSalida !== '0000-00-00 00:00:00') ? $Programaciones->ProgVehSalida : null; $fechaRecep = $SolicitudServicio->recepcion ?? null; $solserFecha = $SolicitudServicio->SolSerFecha ?? null; if ($fechaProgSalida) { $fechaMostrar = \Carbon\Carbon::parse($fechaProgSalida)->format('d/m/Y'); } elseif ($fechaRecep) { $fechaMostrar = \Carbon\Carbon::parse($fechaRecep)->format('d/m/Y'); } elseif ($solserFecha) { $fechaMostrar = \Carbon\Carbon::parse($solserFecha)->format('d/m/Y'); } else { $fechaMostrar = now()->format('d/m/Y'); } } @endphp @if($SolicitudServicio->SolSerTypeCollect === Null ) @else @endif

SERVICIO: No. {{$SolicitudServicio->ID_SolSer}} 

FECHA RECOLECCIÓN: {{ $fechaMostrar }} 

FECHA RECOLECCIÓN: {{ $fechaMostrar }} 

AUDITABLE: {{$SolicitudServicio->SolResAuditoriaTipo}}


@foreach($GenerResiduos as $GenerResiduo) {{-- @if($SolicitudServicio->SolSerTypeCollect === Null ) --}} {{-- @else @endif --}} @if($SolicitudServicio->SolSerTypeCollect === Null ) @else @endif

EMPRESA:

{{ $Cliente->CliName ?? 'N/A' }}

{{ ($GenerResiduo->GenerName ?? 'N/A') . ' - ' . ($GenerResiduo->GSedeName ?? 'N/A') }}

NIT:

{{ $Cliente->CliNit ?? 'N/A' }}

GENERADOR:

{{$GenerResiduo->GenerName ?? 'N/A' }}

SEDE:

{{ $GenerResiduo->GSedeName ?? 'N/A' }}

DIRECCIÓN:

{{ $Cliente->SedeAddress ?? 'N/A' }}

{{ $GenerResiduo->GSedeAddress ?? 'N/A' }}

CIUDAD:

{{ $GenerResiduo->MunName ?? 'N/A' }}

FUNCIONARIO
RESPONSABLE:

{{ ($SolicitudServicio->PersFirstName ?? '') . ' ' . ($SolicitudServicio->PersLastName ?? '') }}

CARGO:

{{ $SolicitudServicio->CargName ?? 'N/A' }}

CORREO
ELECTRÓNICO:

{{$SolicitudServicio->PersEmail}}

TELÉFONO:

{{$SolicitudServicio->PersCellphone}}

CONDUCTOR ASIGNADO:

{{$SolSerConductor}}

VEHICULO

{{$SolicitudServicio->SolSerVehiculo}}

RESIDUOS A ENTREGAR Y TRANSPORTAR

@endforeach @foreach($Residuos as $Residuo) @endforeach

DESCRIPCIÓN RESPEL

CLASIFICACIÓN (Decreto 4741)

EMBALAJE

CANTIDAD (EMBALAJE)

CANTIDAD (KG)

TIPO DE PELIGROSIDAD

{{ $Residuo->RespelName ?? 'N/A' }}

@if($Residuo->YRespelClasf4741 == NULL) {{$Residuo->ARespelClasf4741}} @else {{$Residuo->YRespelClasf4741}} @endif

{{$Residuo->SolResEmbalaje}}

{{$Residuo->SolResCantEmbalaje ?? 'N/A'}}

{{number_format($Residuo->SolResKgRecibido, $decimals = 2, $dec_point = ",", $thousands_sep = "." )}} Kilogramos

{{$Residuo->RespelIgrosidad}}

PESO TOTAL ENTREGADO KG

{{number_format($totales, $decimals = 2, $dec_point = ',', $thousands_sep = '.')}} kg

VERIFICACIÓN EN PLANTA


LAS PARTES HACEN CONSTAR QUE:

a.La Empresa Usuaria certifica que los residuos y/o materiales entregados para su tratamiento y disposición final correspondiente fielmente a lo relacionado y especificado en la declaración de residuos y que NO ha enviado con el presente servicio materiales o residuos explosivos o radiactivos.

b. Que los residuos y/o materiales entregados han sido identificados de acuerdo a lo estipulado en el Decreto 4741 y que se encuentran debidamente embalados y sin riesgo de que se produzca derrame durante su cargue o transporte.

c. Así mismo se hace constar que las puertas del furgón ha sido cerradas con candado y ha sido colocado y cerrado el PRECINTO DE SEGURIDAD No. {{ $precintosString }} en presencia de {{ $firmas->NombreFuncionario ?: 'No registrado' }} con cedula No.{{ ($firmas->Cedula && $firmas->Cedula != '0') ? $firmas->Cedula : 'No registrado' }}

OBSERVACIONES

{{$firmas->Observaciones}}



@if($SolicitudServicio->SolSerTypeCollect === Null ) @else @endif

ENTREGADO POR (Funcionario Empresa Usuaria)

TRANSPORTADO POR

CONTROL HORARIO

@php $firmaClienteSrc = ''; $firmaClienteNombre = trim((string) ($firmas->FirmaCliente ?? '')); if (!empty($firmaClienteNombre) && $firmaClienteNombre !== '0') { // Normaliza valores legacy que pueden venir con ruta completa o con "public/". $firmaClienteNombre = str_replace('\\', '/', $firmaClienteNombre); $firmaClienteNombre = basename(explode('?', $firmaClienteNombre)[0]); $firmaClienteArchivo = preg_match('/\.png$/i', $firmaClienteNombre) ? $firmaClienteNombre : ($firmaClienteNombre . '.png'); $firmaClienteCandidates = [ storage_path('app/public/FirmasClientesRegulares/' . $firmaClienteArchivo), public_path('storage/FirmasClientesRegulares/' . $firmaClienteArchivo), // Fallback legacy por si hay despliegues antiguos. public_path('img/FirmasClientesRegulares/' . $firmaClienteArchivo), ]; foreach ($firmaClienteCandidates as $candidate) { if (file_exists($candidate)) { $firmaClienteSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($candidate)); break; } } } @endphp @if(!empty($firmaClienteSrc)) @else Sin firma registrada @endif

Conductor:
{{ $nombreConductor ?? 'No asignado' }}
_________________

Hora de Registro:
{{ now()->format('d/m/Y H:i') }}  

Nombre: {{ $firmas->NombreFuncionario ?: 'No registrado' }}

Ayudante: {{$user->UsName}}

Ayudante: {{$Programaciones ? $Programaciones->PersFirstName . ' ' . $Programaciones->PersLastName : 'No asignado'}}