Add vehicle count to dashboard
This commit is contained in:
parent
c2aced484d
commit
387e511c8d
@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user