@php use App\Http\Controllers\modificaciones_controller; @endphp CAMBIO O MODIFICACIÓN INTERNAS
CAMBIO O MODIFICACIÓN INTERNAS

FECHA DE SOLICITUD CORRECCIÓN INTERNA: {{date('d/m/Y', strtotime($datos_modificacion->fecha_solicitud))}}

FECHA DE ELABORACIÓN: {{date('d/m/Y', strtotime($fecha_elaboracion))}}

FECHA LÍMITE PARA EL CAMBIO: {{date('d/m/Y', strtotime($datos_modificacion->fecha_entrega))}}

@foreach($datos_areas as $area) @endforeach
ÁREAS AFECTADAS POR EL CAMBIO
LÍNEA DE TRABAJO PERSONAL RESPONSABLE JEFE DE ÁREA
{{$area->linea}} {{$area->nombre}} {{$area->apaterno}} {{$area->jefe ?? 'N/A'}}
INFORME AFECTADO: {{$num_informe ?? 'N/A'}}
EMPRESA INFORME: {{$datos_cliente->cliente_informe ?? 'N/A'}}
EMPRESA FACTURA: {{$datos_cliente->cliente_factura ?? 'N/A'}}
PERSONA QUE SOLICITÓ EL CAMBIO: {{$datos_modificacion->persona_solicita_cambio}}
ORIGEN DEL CAMBIO: {{$datos_modificacion->cambio}}
FECHA DE CORRECCIÓN INTERNA: {{date('d/m/Y', strtotime($datos_modificacion->fecha_recepcion))}}
VÍA DE SOLICITUD: {{$datos_modificacion->via_solicitud}}
DESCRIPCIÓN Y/O MOTIVO DEL CAMBIO O MODIFICACIÓN
{{$datos_modificacion->descripcion}}
@foreach ($datos_informes as $dato_informe) @php $campo_modificado = modificaciones_controller::campo_modificado($dato_informe->campo_modificado); $datos_campo_modificado_dice = modificaciones_controller::datos_campo_modificado( $dato_informe->campo_modificado, $dato_informe->dice ); $datos_campo_modificado_debe_decir = modificaciones_controller::datos_campo_modificado( $dato_informe->campo_modificado, $dato_informe->debe_decir ); @endphp @switch($dato_informe->campo_modificado) @case("cliente_informes.empresa_representante") @php $valorVisual = $dato_informe->dice; $ids = explode('|',$valorVisual); if(count($ids)==2){ $cliente = \App\Cliente_Informe::find($ids[0]); $rep = \App\Cliente_Representante_Legal_Informe::find($ids[1]); $valorVisual = "Cliente Informe: ".($cliente->nombre_empresa ?? 'N/A'). " | Rep. Legal: ".($rep->representante_legal ?? 'N/A'); } @endphp @break @case("cliente_facturas.empresa_contacto") @php $valorVisual = $dato_informe->dice; $ids = explode('|',$valorVisual); if(count($ids)==2){ $cliente = \App\Cliente_Factura::find($ids[0]); $contacto = \App\Cliente_Contacto_Factura::find($ids[1]); $valorVisual = "Cliente Factura: ".($cliente->nombre_empresa ?? 'N/A'). " | Nombre Contacto: ".($contacto->nombre_contacto ?? 'N/A'); } @endphp @break @default @endswitch @switch($dato_informe->campo_modificado) @case("cliente_informes.empresa_representante") @php $valorVisual = $dato_informe->debe_decir; $ids = explode('|',$valorVisual); if(count($ids)==2){ $cliente = \App\Cliente_Informe::find($ids[0]); $rep = \App\Cliente_Representante_Legal_Informe::find($ids[1]); $valorVisual = "Cliente Informe: ".($cliente->nombre_empresa ?? 'N/A'). " | Rep. Legal: ".($rep->representante_legal ?? 'N/A'); } @endphp @break @case("cliente_facturas.empresa_contacto") @php $valorVisual = $dato_informe->debe_decir; $ids = explode('|',$valorVisual); if(count($ids)==2){ $cliente = \App\Cliente_Factura::find($ids[0]); $contacto = \App\Cliente_Contacto_Factura::find($ids[1]); $valorVisual = "Cliente Factura: ".($cliente->nombre_empresa ?? 'N/A'). " | Nombre Contacto: ".($contacto->nombre_contacto ?? 'N/A'); } @endphp @break @default @endswitch @endforeach
CAMBIO EN NO. INFORME MODELO CAMPO A MODIFICAR DICE DEBE DECIR A CARGO DE
{{$dato_informe->numero_informe}} {{$dato_informe->modelo ?? 'N/A'}} {{$campo_modificado}} {{$valorVisual}}{{$valorVisual}}{{$dato_informe->dice}}{{$valorVisual}}{{$valorVisual}}{{$dato_informe->debe_decir}}{{$dato_informe->a_cargo_de}}


@php $firma_recibio = $datos_firmas->firstWhere('tipo_firma', 'Recibio solicitud de modificación'); $firma_calidad = $datos_firmas->firstWhere('tipo_firma', 'Reviso Área de calidad'); $firma_jefe = $datos_firmas->firstWhere('tipo_firma', 'Jefe de área afectada'); $firma_responsable = $datos_firmas->firstWhere('tipo_firma', 'Persona responsable del cambio'); @endphp
@if($firma_recibio) @endif
RECIBIÓ SOLICITUD DE CAMBIO
@if($firma_calidad) @endif
AUTORIZÓ
ÁREA DE CALIDAD
@if($firma_jefe) @endif
REVISÓ
JEFE DE ÁREA
@if($firma_responsable) @endif
REALIZÓ
MODIFICACIÓN



@php $firma_coordinador = $datos_firmas->firstWhere('tipo_firma', 'Coordinador de cambios revisa modificación'); @endphp
@if($firma_coordinador) @endif
REVISÓ CONCLUSIÓN
DE MODIFICACIÓN
@php $datos_modificacion_evidencia_dice = $datos_modificacion_evidencia->where("tipo","DICE"); $datos_modificacion_evidencia_debe_decir = $datos_modificacion_evidencia->where("tipo","DEBE DECIR"); @endphp @if ($datos_modificacion_evidencia_dice->count() || $datos_modificacion_evidencia_debe_decir->count())

DICE

@foreach ($datos_modificacion_evidencia_dice as $evi) @endforeach

DEBE DECIR

@foreach ($datos_modificacion_evidencia_debe_decir as $evi) @endforeach
@endif