modified moon display table

This commit is contained in:
2019-02-28 23:45:32 -06:00
parent bd572cc7dc
commit 1a299e3dac
3 changed files with 27 additions and 2 deletions

View File

@@ -193,7 +193,9 @@ class MoonsAdminController extends Controller
$price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity,
$moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity);
if($today > $rentalTemp) {
if($rentalTemp->diffInDays($today) < 3 ) {
$color = 'table-warning';
} else if( $today > $rentalTemp) {
$color = 'table-primary';
} else {
$color = 'table-danger';

View File

@@ -58,7 +58,9 @@ class MoonsController extends Controller
$moonprice = $price['outofalliance'];
}
if($today > $rentalTemp) {
if($rentalTemp->diffInDays($today) < 3 ) {
$color = 'table-warning';
} else if( $today > $rentalTemp) {
$color = 'table-primary';
} else {
$color = 'table-danger';

View File

@@ -1,5 +1,26 @@
@extends('layouts.b4')
@section('content')
<div class="container">
<table class="table table-striped">
<thead>
<th>Legend</tH>
</thead>
<tbody>
<tr class="table-primary">
<td>Moon Available</td>
</tr>
<tr class="table-danger">
<td>Moon Rented</td>
</tr>
<tr class="table-warning">
<td>Moon Rent Due</td>
</tr>
</tbody>
</table>
</div>
<div class="container col-md-12">
<table class="table table-striped">
<thead>