Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter integration #255

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
Expand Down Expand Up @@ -75,7 +76,10 @@ public static function table(Table $table): Table
->sortable(),
])
->filters([
//
SelectFilter::make('fk_menu_id')->label('Menu')
->options(
\App\Models\Menu::all()->pluck('name', 'id')
)
])
->actions([
Tables\Actions\EditAction::make(),
Expand Down
83 changes: 0 additions & 83 deletions resources/views/livewire/about.blade.php

This file was deleted.

105 changes: 0 additions & 105 deletions resources/views/livewire/contact.blade.php

This file was deleted.

14 changes: 0 additions & 14 deletions resources/views/livewire/header.blade.php

This file was deleted.

4 changes: 2 additions & 2 deletions resources/views/livewire/webrender.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<x-guest-layout>
<section>
<div>
@if ($contents)
@foreach ($contents as $element)
{!! $element['content'] !!}
@endforeach
@else
<p>No content found</p>
@endif
</section>
</div>
</x-guest-layout>
Loading