-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b176575
commit 0e72134
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Livewire; | ||
|
||
use App\Models\Landing as LandingModel; | ||
use Illuminate\Support\Collection; | ||
use Illuminate\View\View; | ||
use Livewire\Attributes\Computed; | ||
use Livewire\Attributes\Layout; | ||
|
||
class Landing extends Component | ||
{ | ||
#[Computed] | ||
public function landings(): Collection | ||
{ | ||
return LandingModel::where('state', true)->get(); | ||
} | ||
|
||
#[Layout('layouts.guest')] | ||
public function render(): View | ||
{ | ||
return view('livewire.landing'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div | ||
class="mx-auto w-full py-4 sm:py-6 md:max-w-3xl lg:max-w-[40rem] lg:py-8 xl:max-w-[48rem]" | ||
> | ||
<div class="prose max-w-none prose-h2:mt-6"> | ||
@foreach ($this->landings as $value) | ||
{!! $value->content !!} | ||
@endforeach | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,6 @@ | |
}); | ||
|
||
Route::impersonate(); | ||
|
||
Route::get('landing', App\Livewire\Landing::class)->name('landing'); | ||
}); |