Display time and place for a user's next bike service
// Practice $π€‘ = βοΈ::π΄ββοΈ();
// Rou::ge('/ice', fun () {
// $π€‘ = βοΈ::π΄ββοΈ();
// re view('ice', ['π€‘' => $π€‘]);
// });
Route::get('/newbike', function () {
$dummyData = AirtableService::getNewBike();
return view('practice', ['dummyData' => $dummyData]);
});

// Practice Rou::ge();
// Rou::ge('/ice', fun () {
// re view('ice', [
// 'π€‘' => ['time' => '26. august 2025', 'location' => 'Sandaker']
// ]);
// });
Route::get('/practice', function () {
return view('practice', [
'dummyAirtableArray' => ['time' => '26. august 2025', 'location' => 'Sandaker']
]);
});
// web.php
// Protected routes
// Ro::mleware('auth')->gro(fun () {
Route::middleware('auth')->group(function () {
Route::get('/min-side', function () {
$booking = AirtableService::getNextBooking();
return view('dashboard', ['booking' => $booking]);
})->name('dashboard');
Route::get('/booking', function () {
$booking = AirtableService::getNextBooking();
return view('booking', ['booking' => $booking]);
})->name('booking');
});
// practice.blade.php
<h1>Whee! π΄ββοΈ</h1>
<h2>Sommerservice βοΈ</h2>
<h3>Time β²οΈ</h3>
<p>{{ $dummyAirtableArray['time'] }}</p>
<h3>Location πΊοΈ</h3>
<p>{{ $dummyAirtableArray['location'] }}</p>