where('is_active', true) ->orderBy('id', 'desc') ->paginate(6)); return Inertia::render('Client/Library-exhibitions/Index', compact('exhibitions')); } public function show(string $slug) { $exhibition = new ClientVirtualExhibitionListResource(VirtualExhibition::query()->where('slug', $slug)->firstOrFail()); return Inertia::render('Client/Library-exhibitions/Show', compact('exhibition')); } }