row colors for the table

This commit is contained in:
2019-02-23 22:55:13 -06:00
parent f455c9a6a4
commit 814b2462cb
3 changed files with 50 additions and 22 deletions
@@ -19,7 +19,23 @@
<th>Rental End</th>
</thead>
<tbody>
{!! $html !!}
@foreach($table as $row)
<tr class="{{ $row['RowColor'] }}">
<td>{{ $row['SPM'] }}</td>
<td>{{ $row['StructureName'] }}</td>
<td>{{ $row['FirstOre'] }}</td>
<td>{{ $row['FirstQuantity'] }}</td>
<td>{{ $row['SecondOre'] }}</td>
<td>{{ $row['SecondQuantity'] }}</td>
<td>{{ $row['ThirdOre'] }}</td>
<td>{{ $row['ThirdQuantity'] }}</td>
<td>{{ $row['FourthOre'] }}</td>
<td>{{ $row['FourthQuantity'] }}</td>
<td>{{ $row['Price'] }}</td>
<td>{{ $row['Worth'] }}</td>
<td>{{ $row['RentalEnd'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>