@extends('Sidebar.icssacvSidebar') @section('title', 'Seguimiento') @section('contenido')
C.A. Final | --}}No. Eco | No. Serie | No. Motor | C.I. Vehiculo | Diagnostico | Status Seg. | Fecha Inventario | Entrega Avaluo | Entrega Expediente | Fecha Venta | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{!!$consulta->Ctro_Acop!!} | --}}{!!$consulta->No_Eco!!} | {!!$consulta->Serie_Chasis!!} | {!!$consulta->Serie_Motor!!} | {!!$consulta->Cl_Vehiculo!!} | {!!$consulta->Diagnostico!!} | @if ($consulta->fecha_expediente != NULL) Con Expediente @elseif ($consulta->fecha_avaluo != NULL) Con Avalúo @elseif($consulta->fecha_inventario != NULL) Visitado @else Por Visitar @endif | @php $dias = 0; if ($consulta->fecha_inventario != NULL) { if ($consulta->fecha_avaluo != NULL) { $dias = $consulta->dias_avaluo; }else { $dias = getDaysFromDateWithoutWEsHs($fechaActual, new DateTime($consulta->fecha_inventario)); } } if ($dias == 0) { //$bg_color_exp = "bgcolor='white'"; $bg_color_exp = "style = 'color: white'"; }elseif ($dias <= 3) { //$bg_color_exp = "bgcolor='white'"; $bg_color_exp = "style = 'color: green'"; }elseif($dias >= 6){ //$bg_color_exp = "bgcolor='red'"; $bg_color_exp = "style = 'color: red'"; }else { //$bg_color_exp = "bgcolor='yellow'"; $bg_color_exp = "style = 'color: yellow'"; } @endphp{!!$consulta->fecha_inventario!!} | {{--{!!$consulta->fecha_avaluo!!} | --}} |
@php
$dias = 0;
if ($consulta->fecha_inventario != NULL) {
if ($consulta->fecha_expediente != NULL) {
$dias = $dias_expediente;
}else {
$dias = getDaysFromDateWithoutWEsHs($fechaActual,new DateTime($consulta->fecha_inventario));
}
}
if ($dias == 0) {
//$bg_color_exp = "bgcolor='white'";
$bg_color_exp = "style = 'color: white'";
}elseif ($dias <= 21) {
//$bg_color_exp = "bgcolor='white'";
$bg_color_exp = "style = 'color: green'";
}elseif($dias >= 31){
//$bg_color_exp = "bgcolor='red'";
$bg_color_exp = "style = 'color: red'";
}else {
//$bg_color_exp = "bgcolor='yellow'";
$bg_color_exp = "style = 'color: yellow'";
}
@endphp
{{-- {!!$consulta->fecha_expediente!!} | --}} |
@php
$dias = 0;
if ($consulta->fecha_expediente != NULL) {
if ($consulta->fecha_venta != NULL) {
$dias = getDaysFromDateWithoutWEsHs(new DateTime($consulta->fecha_venta), new DateTime( $consulta->fecha_expediente));
}else {
$dias = getDaysFromDateWithoutWEsHs($fechaActual,new DateTime($consulta->fecha_expediente));
}
}
if ($dias == 0) {
//$bg_color_exp = "bgcolor='white'";
$bg_color_exp = "style = 'color: white'";
}elseif ($dias <= 21) {
//$bg_color_exp = "bgcolor='white'";
$bg_color_exp = "style = 'color: green'";
}elseif($dias >= 31){
//$bg_color_exp = "bgcolor='red'";
$bg_color_exp = "style = 'color: red'";
}else {
//$bg_color_exp = "bgcolor='yellow'";
$bg_color_exp = "style = 'color: yellow'";
}
@endphp
{{-- {!!$consulta->fecha_venta!!} | --}}