public function form(Form $form): Form
{
return $form
->schema([
Section::make('Website setting')
->schema([
TextInput::make('company_name')
->name('Name'),
TextInput::make('company_email')
->name('Email'),
TextInput::make('company_address')
->name('Address'),
])
->columnSpan(2),
Section::make('Meta')
->schema([
FileUpload::make('company_logo')
->name('Logo')
->image()
->maxFiles(1),
FileUpload::make('company_favicon')
->name('Favicon')
->image()
->maxFiles(1),
])
->columnSpan(1),
Section::make('Socials')
->schema([
TextInput::make('facebook_url'),
TextInput::make('twitter_url'),
TextInput::make('linkedin_url')
])
->columnSpan(2),
])
->columns(3)
->statePath('data')
->fill(self::getSetting()->toArray());
}
public function form(Form $form): Form
{
return $form
->schema([
Section::make('Website setting')
->schema([
TextInput::make('company_name')
->name('Name'),
TextInput::make('company_email')
->name('Email'),
TextInput::make('company_address')
->name('Address'),
])
->columnSpan(2),
Section::make('Meta')
->schema([
FileUpload::make('company_logo')
->name('Logo')
->image()
->maxFiles(1),
FileUpload::make('company_favicon')
->name('Favicon')
->image()
->maxFiles(1),
])
->columnSpan(1),
Section::make('Socials')
->schema([
TextInput::make('facebook_url'),
TextInput::make('twitter_url'),
TextInput::make('linkedin_url')
])
->columnSpan(2),
])
->columns(3)
->statePath('data')
->fill(self::getSetting()->toArray());
}