modified moon display table
This commit is contained in:
@@ -193,7 +193,9 @@ class MoonsAdminController extends Controller
|
|||||||
$price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity,
|
$price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity,
|
||||||
$moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity);
|
$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';
|
$color = 'table-primary';
|
||||||
} else {
|
} else {
|
||||||
$color = 'table-danger';
|
$color = 'table-danger';
|
||||||
|
|||||||
@@ -58,7 +58,9 @@ class MoonsController extends Controller
|
|||||||
$moonprice = $price['outofalliance'];
|
$moonprice = $price['outofalliance'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($today > $rentalTemp) {
|
if($rentalTemp->diffInDays($today) < 3 ) {
|
||||||
|
$color = 'table-warning';
|
||||||
|
} else if( $today > $rentalTemp) {
|
||||||
$color = 'table-primary';
|
$color = 'table-primary';
|
||||||
} else {
|
} else {
|
||||||
$color = 'table-danger';
|
$color = 'table-danger';
|
||||||
|
|||||||
@@ -1,5 +1,26 @@
|
|||||||
@extends('layouts.b4')
|
@extends('layouts.b4')
|
||||||
@section('content')
|
@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">
|
<div class="container col-md-12">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
Reference in New Issue
Block a user