Setting up + routing the page

This commit is contained in:
p.sterz
2023-07-21 12:39:11 +02:00
parent dc5560aa75
commit 61050ada15
5 changed files with 46 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Http\Livewire\BooksForPlebs;
use Livewire\Component;
class BookRentalGuide extends Component
{
public function render()
{
return view('livewire.books-for-plebs.book-rental-guide');
}
}

View File

@@ -24,7 +24,7 @@ return new class extends Migration
$table->id();
$this->nullableMorphs($table, 'commentator', 'commentator_reactions');
$table->foreignId('comment_id')->references('id')->on('comments')->cascadeOnDelete();
$table->string('reaction')->collation('C.UTF-8');
$table->string('reaction');
$table->timestamps();
});

View File

@@ -0,0 +1,22 @@
<div>
<h1 class="text-white text-xl">Test</h1>
</div>
<div class="h-screen w-full">
<livewire:frontend.header :country="\App\Models\Country::query()->where('code', 'de')->first()"/>
<div class="px-2 sm:px-24">
<!-- Hier coden/arbeiten -->
<div class="flex space-x-2 justify-between">
<h1 class="text-white text-xl">Test</h1>
<h1 class="text-white text-xl">Test</h1>
<h1 class="text-white text-xl">Test</h1>
<h1 class="text-white text-xl">Test</h1>
</div>
</div>
<livewire:frontend.footer/>
</div>

View File

@@ -51,6 +51,12 @@
{{ __('Bücher') }}
</a>
<a href="{{ route('buecherverleih') }}"
class="flex gap-x-4 py-2 text-sm font-semibold leading-6 text-gray-900">
<i class="fa-thin fa-book-arrow-right flex-none text-gray-400 w-6 h-5 mr-2 -ml-1"></i>
{{ __('Bücherverleih') }}
</a>
<a href="{{ route('library.table.podcastsEpisodes', ['country' => $country]) }}"
class="flex gap-x-4 py-2 text-sm font-semibold leading-6 text-gray-900">
<i class="fa-thin fa-podcast flex-none text-gray-400 w-6 h-5 mr-2 -ml-1"></i>

View File

@@ -20,6 +20,10 @@ Route::middleware([])
->get('/kaninchenbau', \App\Http\Livewire\Helper\FollowTheRabbit::class)
->name('kaninchenbau');
Route::middleware([])
->get('/buecherverleih', \App\Http\Livewire\BooksForPlebs\BookRentalGuide::class)
->name('buecherverleih');
Route::get('/img/{path}', \App\Http\Controllers\ImageController::class)
->where('path', '.*')
->name('img');