| ID | NOMBRE DEL CASO | NOMBRE PERSONA | CÉDULA | FECHA MÁXIMA | |
|---|---|---|---|---|---|
| {{ $cause->ce_id }} | {{ $cause->caso_nombre }} | {{ $cause->nombre }} | {{ $cause->pege_documentoidentidad }} |
@php
$maxima = \Carbon\Carbon::createFromTimeString($cause->ce_fecha_max)
//->addDays(30)
->startOfDay();
$actual = \Carbon\Carbon::createFromTimeString($cause->actual)->startOfDay();
$tope = \Carbon\Carbon::createFromTimeString($cause->tope)->startOfDay();
$lightYellow = false;
$lightGreen = false;
$lightRed = false;
if ($maxima->between($tope, $actual)) {
$lightYellow = true;
} elseif ($actual->greaterThan($maxima)) {
$lightRed = true;
} else {
$lightGreen = true;
}
@endphp
{{ $maxima->format('d/m/Y') }}
$lightYellow,
'bg-danger' => $lightRed,
'bg-success' => $lightGreen,
]) style="width:14px;height:14px;">
|
VER CASO |