row colors for the table
This commit is contained in:
@@ -59,9 +59,9 @@ class MoonsController extends Controller
|
||||
}
|
||||
|
||||
if($today > $rentalTemp) {
|
||||
$color = 'success';
|
||||
$color = 'table-success';
|
||||
} else {
|
||||
$color = 'warning';
|
||||
$color = 'table-danger';
|
||||
}
|
||||
|
||||
//Add the data to the html string to be passed to the view
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($table as $row)
|
||||
<tr>
|
||||
<tr class="{{ $row['RowColor'] }}">
|
||||
<td>{{ $row['SPM'] }}</td>
|
||||
<td>{{ $row['StructureName'] }}</td>
|
||||
<td>{{ $row['FirstOre'] }}</td>
|
||||
|
||||
Reference in New Issue
Block a user