Refactor navigation icon declarations in various resources for consistency; enhance Group model with new relationships and fillable properties; update Hotel and Pilgrim models with fillable attributes; improve table configurations across resources.
This commit is contained in:
26
app/Filament/Resources/Hotels/Pages/ViewHotel.php
Normal file
26
app/Filament/Resources/Hotels/Pages/ViewHotel.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Hotels\Pages;
|
||||
|
||||
use App\Filament\Resources\Hotels\HotelResource;
|
||||
use App\Filament\Resources\Hotels\Schemas\HotelInfolist;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class ViewHotel extends ViewRecord
|
||||
{
|
||||
protected static string $resource = HotelResource::class;
|
||||
|
||||
public function infolist(Schema $schema): Schema
|
||||
{
|
||||
return HotelInfolist::configure($schema);
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\EditAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user