@php use App\Http\Controllers\modificaciones_controller; @endphp Formato de modificación
{{--

SERVICIOS DE ANÁLISIS TÉCNICOS, S.A. DE C.V.

--}}

CAMBIO O MODIFICACIÓN A LA SOLICITUD DE SERVICIO

{{--

CAMBIO O MODIFICACIÓN A LA SOLICITUD DE SERVICIO

--}}

FECHA DE SOLICITUD DEL CLIENTE: {{$datos_modificacion->fecha_solicitud}}

NOMBRE DE LA EMPRESA: {{$datos_cliente->cliente_informe}}

PERSONA QUE SOLICITÓ EL CAMBIO: {{$datos_modificacion->persona_solicita_cambio}}

{{--

Referencia consecutiva para cambio o modificacion a informe emitido:

--}}

DESCRIPCIÓN Y/O MOTIVO DEL CAMBIO O MODIFICACIÓN

{{$datos_modificacion->descripcion}}

@php $informesAgrupados = $datos_informes->groupBy('id_programacion_muestra'); @endphp @foreach ($informesAgrupados as $id_programacion => $modificaciones) @php $bloques = $modificaciones->chunk(8); // filas por página @endphp @foreach ($bloques as $index => $bloque) @php $rowspan = $bloque->count(); $firstRow = true; @endphp @foreach ($bloque 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 @if($firstRow) @if ($dato_informe->campo_modificado == "programacion_muestras.folio_programacion") @else @endif @php $firstRow = false; @endphp @endif @switch($dato_informe->campo_modificado) @case("inspeccion_muestras.id_precio_x_servicio") @break @case("cliente_informes.id_estado") @break @case("programacion_muestras.id_tecnico") @break @case("programacion_muestras.fecha_informe") @break @case("programacion_muestras.fecha_termino_pruebas") @break @case("programacion_muestras.fecha_emision") @break @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("inspeccion_muestras.id_precio_x_servicio") @break @case("cliente_informes.id_estado") @break @case("programacion_muestras.id_tecnico") @break @case("programacion_muestras.fecha_informe") @break @case("programacion_muestras.fecha_termino_pruebas") @break @case("programacion_muestras.fecha_emision") @break @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 @if($index < count($bloques)-1) @endif @endforeach @endforeach
CAMBIO EN NO. DE INFORME MODELO CAMPO A MODIFICAR DICE DEBE DECIR NUEVO NÚMERO DE INFORME A CARGO DE
{{$dato_informe->dice}} {{$dato_informe->numero_informe}} {{$dato_informe->modelo}} {{$campo_modificado}}{{$datos_campo_modificado_dice}}{{$datos_campo_modificado_dice}}{{$datos_campo_modificado_dice}}{{date("d-m-Y",strtotime($dato_informe->dice))}}{{date("d-m-Y",strtotime($dato_informe->dice))}}{{date("d-m-Y",strtotime($dato_informe->dice))}}{{$valorVisual}}{{$valorVisual}}{{$dato_informe->dice}}{{$datos_campo_modificado_debe_decir}}{{$datos_campo_modificado_debe_decir}}{{$datos_campo_modificado_debe_decir}}{{date("d-m-Y",strtotime($dato_informe->debe_decir))}}{{date("d-m-Y",strtotime($dato_informe->debe_decir))}}{{date("d-m-Y",strtotime($dato_informe->debe_decir))}}{{$valorVisual}}{{$valorVisual}}{{$dato_informe->debe_decir}}N/A {{$dato_informe->a_cargo_de}}
@if ($datos_modificacion->nota != NULL)

NOTA: {{$datos_modificacion->nota}}

@else

NOTA: N/A

@endif

FECHA DE ENTREGA DE MODIFICACIÓN: {{$datos_modificacion->fecha_entrega}}

SOLICITUD VÍA: Presencial {{ ($datos_modificacion->via_solicitud == "Presencial") ? "(✓)" : "--------------" }} Telefónica {{ ($datos_modificacion->via_solicitud == "Teléfonica") ? "(✓)" : "--------------" }} Correo electrónico {{ ($datos_modificacion->via_solicitud == "Correo electrónico") ? "(✓)" : "--------" }}





@if ($datos_firmas->count() > 0)
@foreach ($datos_firmas as $firma) @switch($firma->tipo_firma) @case("Solicitud de cambio")

RECIBIÓ SOLICITUD DE CAMBIO

@break @case("Area calidad")

AUTORIZÓ ÁREA DE CALIDAD

@break @case("Area afectada")

ÁREA AFECTADA

@break @default @endswitch @endforeach
@else

RECIBIÓ SOLICITUD DE CAMBIO

AUTORIZÓ ÁREA DE CALIDAD

ÁREA AFECTADA

@endif @php $count = count($datos_modulos); $num_tables = ceil($count/5); @endphp @php //die(); @endphp
@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

@php $i=0; @endphp @foreach ($datos_modificacion_evidencia as $evi) @if ($evi->tipo == "DICE") @php $i++; @endphp @if ($i == 1 | $i == 4 | $i == 7 | $i == 10 | $i == 13 | $i == 16 | $i == 19 | $i == 22)

@endif
@if ($i == 3 | $i == 6 | $i == 9 | $i == 12 | $i == 15 | $i == 18 | $i == 21 | $i == $datos_modificacion_evidencia_dice->count())
@endif @endif @endforeach

DEBE DECIR

@php $i=0; @endphp @foreach ($datos_modificacion_evidencia as $evi) @if ($evi->tipo == "DEBE DECIR") @php $i++; @endphp @if ($i == 1 | $i == 4 | $i == 7 | $i == 10 | $i == 13 | $i == 16 | $i == 19 | $i == 22)

@endif
@if ($i == 3 | $i == 6 | $i == 9 | $i == 12 | $i == 15 | $i == 18 | $i == 21 | $i == $datos_modificacion_evidencia_debe_decir->count())
@endif @endif @endforeach
@endif @php //die(); @endphp