All models in /app/Models
Seeders(to populate database with mock data) in /database/seeders
Show Admins
$admins = \App\Models\Admin::all();
$admin = $admins->random();
Show Sales Reports
$salesReports = \App\Models\SalesReport::all();
$report = $salesReports->random();
// Show which admin generated the report
$report->generatedBy
// Show orders in the report's date range
$report->orders
Show Customers
$customers = \App\Models\Customer::all();
$customer = $customers->random();
$customer->addresses;
$customer->active_address;
$customer->cart
$customer->cart->sub_total
$customer->cart->foods
$customer->orders
$customer->orders->where('status', 'Preparing')->first()->deliverer
$customer->orders->where('status', 'OutForDelivery')->first()->deliverer
Show Foods
$food = \App\Models\Food::find(1);
$food->category
Show notify
$order = \App\Models\Order::where('status', 'ReadyForPickup')
\App\Models\Deliverer::notify($order)