Refactor HomePageSettings: remove view definition, update background video icon, and delete unused Blade view file. Add HomeSettings import in HomePageController.

This commit is contained in:
2025-07-28 12:46:23 +05:00
parent 2bf0c8f20d
commit d0985a71d5
3 changed files with 4 additions and 6 deletions

View File

@@ -18,8 +18,6 @@ class HomePageSettings extends SettingsPage
protected static string $settings = HomeSettings::class; protected static string $settings = HomeSettings::class;
protected static string $view = 'filament.pages.home-page-settings';
public function form(Form $form): Form public function form(Form $form): Form
{ {
return $form return $form
@@ -49,9 +47,10 @@ class HomePageSettings extends SettingsPage
->url(), ->url(),
])->columns(2), ])->columns(2),
]), ]),
Section::make('Background Video') Section::make('Background Video')
->description('Upload or link the background video for the hero section.') ->description('Upload or link the background video for the hero section.')
->icon('heroicon-o-video') ->icon('heroicon-o-camera')
->schema([ ->schema([
TextInput::make('bg_video') TextInput::make('bg_video')
->label('Background Video URL') ->label('Background Video URL')

View File

@@ -2,6 +2,8 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Settings\HomeSettings;
class HomePageController extends Controller class HomePageController extends Controller
{ {
public function index() public function index()

View File

@@ -1,3 +0,0 @@
<x-filament-panels::page>
</x-filament-panels::page>