moons admin controller

This commit is contained in:
2019-05-05 20:27:22 -05:00
parent 6c3e450438
commit f4c72bcfd4

View File

@@ -224,7 +224,8 @@ class MoonsAdminController extends Controller
}
//Set the color for the table
if($rentalTemp->diffInDays(Carbon::now()) < 3 ) {
$today = Carbon::now();
if($rentalTemp->diffInDays($today) < 3 ) {
$color = 'table-warning';
} else if( $today > $rentalTemp) {
$color = 'table-primary';