23 lines
782 B
PHP
Executable File
23 lines
782 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Http\Controllers\Client;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Service;
|
|
use App\Models\User;
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
class HomepageController extends Controller
|
|
{
|
|
public function index(): View
|
|
{
|
|
return view('pages.client.homepage', [
|
|
'pageTitle' => 'Beranda',
|
|
'metaDesc' => 'Temukan barbershop dengan kualitas layanan unggulan, pengalaman profesional, dan suasana nyaman. Dapatkan penawaran menarik dan ulasan terpercaya untuk memilih layanan yang sesuai dengan kebutuhan Anda',
|
|
'services' => Service::latest()->take(3)->get(),
|
|
'barber' => User::with(['biography', 'attachments'])->barber()->get(),
|
|
'prices' => Service::latest()->get(),
|
|
]);
|
|
}
|
|
}
|