{{-- --}} 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-010

SISTEMA INTEGRADO DE GESTIÓN

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' }}

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

NIT:

{{ $Cliente->CliNit ?? '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['conciliado'], $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}} con cedula No.{{$firmas->Cedula}}

OBSERVACIONES

{{$firmas->Observaciones}}



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

ENTREGADO POR (Funcionario Empresa Usuaria)

TRANSPORTADO POR

CONTROL HORARIO

@if(isset($firmas->FirmaCliente) && !empty($firmas->FirmaCliente)) @php $rutaFirmaStorage = storage_path('app/public/FirmasClientesExpress/' . $firmas->FirmaCliente . '.png'); $rutaFirmaPublic = public_path('storage/FirmasClientesExpress/' . $firmas->FirmaCliente . '.png'); $rutaFirmaPublicLegacy = public_path('img/FirmasClientesExpress/' . $firmas->FirmaCliente . '.png'); $firmaSrc = null; if (file_exists($rutaFirmaStorage)) { $firmaSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($rutaFirmaStorage)); } elseif (file_exists($rutaFirmaPublic)) { $firmaSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($rutaFirmaPublic)); } elseif (file_exists($rutaFirmaPublicLegacy)) { $firmaSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($rutaFirmaPublicLegacy)); } @endphp @if($firmaSrc) @else Sin firma @endif @else Pendiente de firma @endif

@php $userImagePath = public_path('img/' . $user->UsSlug . '.png'); $transparentPixel = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/w8AAgMBAp+X2l0AAAAASUVORK5CYII='; $defaultImagePath = public_path('img/5.png'); if (file_exists($userImagePath)) { $imageData = base64_encode(file_get_contents($userImagePath)); $imageSrc = 'data:image/png;base64,' . $imageData; } elseif (file_exists($defaultImagePath)) { $imageData = base64_encode(file_get_contents($defaultImagePath)); $imageSrc = 'data:image/png;base64,' . $imageData; } else { $imageSrc = $transparentPixel; } @endphp

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

Nombre: {{$firmas->NombreFuncionario}}

Ayudante: {{$user->UsName}}

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