@extends('fragments.fullTemplate') @php $id_usuario = session('id_usuario'); if (! session('id_usuario')) { header('location: /'); die(); } @endphp @php $estatus_factura = 'SIN FACTURA'; if ($datos_muestras_reporte && $datos_muestras_reporte->conceptos->count() > 0) { foreach ($datos_muestras_reporte->conceptos as $concepto) { if ($concepto->factura && $concepto->factura->count() > 0) { $factura = $concepto->factura->first(); $estatus_factura = ($factura->cancelado == 1) ? 'CANCELADA' : 'ACTIVA'; break; } } } @endphp @section('contenido')
@if(session()->has('success')) @endif @if(session()->has('warning') || session()->has('danger')) @endif @if(session()->has('error')) @endif @if (count($errors) > 0) @endif
@if (!$datos_muestras_reporte || $datos_muestras_reporte->conceptos->count() <= 0) @if($permisos->gerente == 1 || $permisos->verqr == 1)
Generar prefactura
@endif @else
@if ($permisos->actualizar == 1 || $permisos->gerente == 1)
@endif @if ($permisos->eliminar == 1 || $permisos->gerente == 1)
@endif
@endif
Estatus de la factura: {{ $estatus_factura }}

DATOS DE LA EMPRESA PARA INFORMES

Empresa: {{$datos_cliente_informe->nombre_empresa}}

Representante: {{$datos_representante_legal->representante_legal}}

Domicilio: @if ($datos_cliente_informe->tipo_direccion == 1) {{$datos_cliente_informe->direccion_informe}} @else @if ($datos_cliente_informe->calle) {{$datos_cliente_informe->calle}}, @endif @if ($datos_cliente_informe->numero_exterior) {{$datos_cliente_informe->numero_exterior}}, @endif @if ($datos_cliente_informe->numero_interior) {{$datos_cliente_informe->numero_interior}}, @endif @if ($datos_cliente_informe->colonia) {{$datos_cliente_informe->colonia}}, @endif @if ($datos_cliente_informe->codigo_postal) C.P. {{$datos_cliente_informe->codigo_postal}}, @endif @if ($datos_cliente_informe->delegacion) {{$datos_cliente_informe->delegacion}}, @endif @if ($datos_cliente_informe->estado) {{$datos_cliente_informe->estado}}, @endif @if ($datos_cliente_informe->pais) {{$datos_cliente_informe->pais}} @endif @endif

DATOS PARA FACTURAR

Empresa: {{$datos_cliente_factura->nombre_empresa}}

RFC: {{$datos_cliente_factura->rfc}}

Domicilio: @if ($datos_cliente_factura->calle) {{$datos_cliente_factura->calle.", "}} @endif @if ($datos_cliente_factura->numero_exterior) {{$datos_cliente_factura->numero_exterior.", "}} @endif @if ($datos_cliente_factura->numero_interior) {{$datos_cliente_factura->numero_interior.", "}} @endif @if ($datos_cliente_factura->colonia) {{$datos_cliente_factura->colonia.", "}} @endif @if ($datos_cliente_factura->codigo_postal) {{$datos_cliente_factura->codigo_postal.", "}} @endif @if ($datos_cliente_factura->delegacion) {{$datos_cliente_factura->delegacion.", "}} @endif @if ($datos_cliente_factura->estado) {{$datos_cliente_factura->estado.", "}} @endif @if ($datos_cliente_factura->pais) {{$datos_cliente_factura->pais}} @endif

Contacto: {{$datos_contacto->nombre_contacto}}

Teléfono: {{$datos_contacto->telefono}}

E-Mail: {{$datos_contacto->correo}}

@if($datos_muestras_reporte) @if($datos_muestras_reporte->conceptos->count()) @php $num_muestras = 0; $informe_cancelado = 0; @endphp @foreach ($datos_muestras_reporte->conceptos as $dato_muestra) @php foreach ($datos_muestras_reporte_cancelados as $key => $dato_cancelado) { if ($dato_muestra->id_programacion_muestra == $dato_cancelado->id_programacion_muestra) { $informe_cancelado = $dato_cancelado->informe_cancelado; } } $num_muestras++; @endphp @php // Aseguramos el arreglo para evitar warnings si no viene de controlador $indicadores_mod = $indicadores_mod ?? []; $pmId = $dato_muestra->id_programacion_muestra; $ind = $indicadores_mod[$pmId] ?? null; $texto = $ind['texto'] ?? ''; $esCobro = isset($ind['tiene_linea_cobro']) && (int)$ind['tiene_linea_cobro'] === 1; @endphp @endforeach @else @endif @endif
No Producto Marca Modelo NOM/NMX Tipo de producto no. Informe Fecha Entrega Modificación
{{ $num_muestras }} {{ $dato_muestra->producto }} {{ $dato_muestra->marca }} {{ $dato_muestra->modelo }} {{ $dato_muestra->servicio }} @if ($dato_muestra->caracteristicas_producto == "Extrabaja") - {{$dato_muestra->caracteristicas_producto}} @endif {{ $dato_muestra->servicio_producto }} {{-- @foreach($datos_extrabaja as $dato_extrabaja) {{ $dato_extrabaja['caracteristicas_producto'] }} @endforeach --}} {{ $dato_muestra->num_informe }} {{ date("d-m-Y",strtotime($dato_muestra->fecha_emision))}} @if(!empty($texto)) {{ $texto }} @endif
No se encontraron registros

DATOS DEL ENVÍO DEL CORREO ELECTRÓNICO PARA CONTRATO

Correo Enviado: @if($envio && ($envio->envio_contrato ?? 0) == 1) SI @else NO @endif

Fecha del envío: {{ $envio && $envio->fecha_envio_contrato ? date('d/m/Y H:i:s', strtotime($envio->fecha_envio_contrato)): '-' }}

DATOS DEL ENVÍO DEL CORREO ELECTRÓNICO PARA PREFACTURA

Correo Enviado: @if($envio && $envio->envio_prefactura == 1) SI @else NO @endif

Fecha del envío: {{ $envio && $envio->fecha_envio_prefactura ? date('d/m/Y H:i:s', strtotime($envio->fecha_envio_prefactura)): '-' }}

@if ($datos_muestras_reporte)
Formato EXCEL PDF EMAIL
PREFACTURA
{{csrf_field()}}
{{csrf_field()}}
CONTRATO
{{csrf_field()}}
{{csrf_field()}}
@endif
@if ($datos_muestras_reporte) {{--
{{csrf_field()}}
{{csrf_field()}}
--}} {{--test
{{csrf_field()}}
{{csrf_field()}}
/test--}} @endif
{{----}} Atrás
@include('Servicio_cliente.create_servicio_cliente_modal') @include('Servicio_cliente.create_contrato_modal') @if ($estatus_reportes) @include('Servicio_cliente.edit_servicio_cliente_modal') @endif @include('Servicio_cliente.delete_servicio_cliente_modal') @include('Servicio_cliente.send_mail_servicio_cliente_modal') @endsection