diff --git a/app/Livewire/Guest/CodingCourses/Record.php b/app/Livewire/Guest/CodingCourses/Record.php index 17975ca..18a092f 100644 --- a/app/Livewire/Guest/CodingCourses/Record.php +++ b/app/Livewire/Guest/CodingCourses/Record.php @@ -14,16 +14,11 @@ class Record extends Component { use WithPagination; - // public $CodingCourses; - public function render(): View { - $CodingCourses = CodingCourses::paginate(10); - // $CodingCourses = CodingCourses::get(); - - // dd($CodingCourses); + $CodingCourses = CodingCourses::latest()->paginate(6); - return view('livewire.guest.CodingCourses.record', + return view('livewire.guest.codingcourses.record', [ 'CodingCourses' => $CodingCourses ] diff --git a/app/Livewire/Guest/Playgrounds/Record.php b/app/Livewire/Guest/Playgrounds/Record.php index 5d7f240..6cb1dcd 100644 --- a/app/Livewire/Guest/Playgrounds/Record.php +++ b/app/Livewire/Guest/Playgrounds/Record.php @@ -9,12 +9,13 @@ class Record extends Component { use WithPagination; - public function render() { + $playgrounds = Playgrounds::latest()->paginate(6); + return view('livewire.guest.playgrounds.record', [ - 'playgrounds' => Playgrounds::latest()->paginate(6) + 'playgrounds' => $playgrounds ])->layout('layouts.guest'); } } diff --git a/resources/views/livewire/guest/CodingCourses/record.blade.php b/resources/views/livewire/guest/CodingCourses/record.blade.php index bd854f0..ad127cd 100644 --- a/resources/views/livewire/guest/CodingCourses/record.blade.php +++ b/resources/views/livewire/guest/CodingCourses/record.blade.php @@ -113,7 +113,9 @@ class="w-full py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm - +
All the playgrounds available:
-