simedkom/app/Filament/Pages/Settings/ManageSeoSettings.php

50 lines
1.6 KiB
PHP

<?php
namespace App\Filament\Pages\Settings;
use App\Settings\SeoSettings;
use BackedEnum;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Pages\SettingsPage;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use UnitEnum;
class ManageSeoSettings extends SettingsPage
{
protected static string|BackedEnum|null $navigationIcon = Heroicon::MagnifyingGlass;
protected static string $settings = SeoSettings::class;
protected static string|UnitEnum|null $navigationGroup = 'Pengaturan';
protected static ?string $navigationLabel = 'SEO';
protected static ?string $title = 'Pengaturan SEO';
public function form(Schema $schema): Schema
{
return $schema
->components([
Section::make('Search Engine Optimization')
->description('Atur bagaimana website Anda muncul di mesin pencari.')
->schema([
TextInput::make('title')
->label('SEO Title')
->helperText('Judul yang muncul di tab browser dan hasil pencarian.'),
Textarea::make('description')
->label('SEO Description')
->helperText('Deskripsi singkat website Anda.'),
TextInput::make('keywords')
->label('SEO Keywords')
->helperText('Gunakan koma untuk memisahkan kata kunci.'),
])
->columnSpanFull(),
]);
}
}