update
This commit is contained in:
@@ -23,6 +23,10 @@ class BiorepositoryController extends Controller
|
||||
$data['totalCabinets'] = BioCabinet::count();
|
||||
$data['totalRacks'] = BioRack::count();
|
||||
$data['totalSpecimens'] = BioSpecimen::count();
|
||||
$data['specimenRows'] = BioSpecimen::with(['cabinet', 'rack'])
|
||||
->orderBy('stored_at', 'DESC')
|
||||
->orderBy('id', 'DESC')
|
||||
->get();
|
||||
|
||||
$data['cabinets'] = BioCabinet::with([
|
||||
'racks' => function ($query) {
|
||||
|
||||
Reference in New Issue
Block a user