@extends('layout/principal') @section('titulo', 'Home') @section('content') @php $cargas_cantidad = count($cargas); $repetidas_cantidad = count($operacion_existe); @endphp @php //dd(get_defined_vars()); @endphp
ALZAMIENTO PRENDA :: PRE CARGA

{{-- Mensajes estandar de Laravel --------}} @if (isset($errors) && $errors->any()) @endif {{-- Mensajes de Session personalizados --}} @if (Session::has('success'))
{{ Session::get('success') }}
@endif @if (Session::has('danger'))
{{ Session::get('danger') }}
@endif
Se cargarán {{ $cargas_cantidad }} operaciones @if ($cargas != null) para {{ $cargas[0]->mandante }} @endif
Confirmar inicio de operaciones Cancelar y Volver
@if (Session::has('mensaje'))

{{ Session::get('mensaje') }}

@endif
{{-- ALERTA OPERACIONES DUPLICADAS EN SISTEMA --}} @if (count($operacion_existe) > 0)
@endif {{-- ALERTA CONTRATOS DUPLICADOS EN PLANILLA --}} @if (count($contrato_duplicado) > 0)
{{--
@endif {{-- ALERTA PATENTES DUPLICADAS EN PLANILLA --}} @if (count($patente_duplicada) > 0)
{{--
@endif
@php // Separar los contratos y patentes en arrays independientes: "array_column()" // Filtrar para eliminar valores NULL: "array_filter()" $contrato_existe = array_filter(array_column($operacion_existe, 'contrato'), 'strlen'); $patente_existe = array_filter(array_column($operacion_existe, 'patente'), 'strlen'); @endphp
{{-- --}} {{-- --}} {{-- --}} {{-- --}} @foreach ($cargas as $carga) contrato, $contrato_existe) || in_array($carga->patente, $patente_existe)) style="background-color: #fce0e2" @endif --}} > {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach
CodigoFecha IngresoArchivoContrato Patente Nómina Rut Cliente Razón Social Cliente Rep. RPSD Tipo Vehículo Marca VIN Modelo Versión Comentario Mandantee-mail
{{$carga->id_carga}}{{$carga->fecha_carga}}{{$carga->archivo}}contrato, $contrato_existe)) style="background-color: #F4F6C3" @endif >{{$carga->contrato}} patente, $patente_existe)) style="background-color: #F6CDCD" @endif >{{$carga->patente}} {{$carga->nomina}} {{$carga->rut_cliente}} {{$carga->nombre_cliente}} {{$carga->repertorio_rpsd}} {{$carga->tipo_vehiculo}} {{$carga->marca}} {{$carga->vin}} {{$carga->modelo}} {{$carga->version}} {{$carga->comentario}}{{$carga->email_cliente}}
@endsection