Add vehicle count to dashboard

This commit is contained in:
Russ Long 2019-07-13 08:52:30 -04:00
parent c2aced484d
commit 387e511c8d
2 changed files with 10 additions and 2 deletions

View File

@ -27,10 +27,12 @@ class PagesController extends Controller
$item_count_result = Items::count();
$bidder_count_result = Bidders::count();
$winner_count_result = WinningBids::count();
$vehicle_count_result = Vehicles::count();
return view('home', [
'item_count_result' => $item_count_result,
'bidder_count_result' => $bidder_count_result,
'winner_count_result' => $winner_count_result
'winner_count_result' => $winner_count_result,
'vehicle_count_result' => $vehicle_count_result
]);
}

View File

@ -20,7 +20,10 @@
Total Bidders:
</th>
<th>
Winners Entered:
Auction Winners Entered:
</th>
<th>
Total Vehicles:
</th>
</tr>
<tr>
@ -33,6 +36,9 @@
<td>
{{ $winner_count_result }}
</td>
<td>
{{ $vehicle_count_result }}
</td>
</tr>
</table>
</div>