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();
|
$item_count_result = Items::count();
|
||||||
$bidder_count_result = Bidders::count();
|
$bidder_count_result = Bidders::count();
|
||||||
$winner_count_result = WinningBids::count();
|
$winner_count_result = WinningBids::count();
|
||||||
|
$vehicle_count_result = Vehicles::count();
|
||||||
return view('home', [
|
return view('home', [
|
||||||
'item_count_result' => $item_count_result,
|
'item_count_result' => $item_count_result,
|
||||||
'bidder_count_result' => $bidder_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:
|
Total Bidders:
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Winners Entered:
|
Auction Winners Entered:
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Total Vehicles:
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -33,6 +36,9 @@
|
|||||||
<td>
|
<td>
|
||||||
{{ $winner_count_result }}
|
{{ $winner_count_result }}
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ $vehicle_count_result }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user