Align Toggle Button

Is there a way to move Toggle Button to top right of the section so it will act like it whole section can enabled or disabled, Or, maybe at-least align it right like action.
1 Reply
RizwanNasir
RizwanNasir12mo ago
never mind guys
$this->section("Cart Notifications", [
Grid::make(1)->schema([
Toggle::make('recent_product_enabled')
->label('Enabled'),
])->extraAttributes([
'style' => 'float: right; '
]),
TextInput::make('cart_title')
->label('Title')
->required(),
Textarea::make('cart_content')
->label('Content')
->rows(2)
->required(),
])
$this->section("Cart Notifications", [
Grid::make(1)->schema([
Toggle::make('recent_product_enabled')
->label('Enabled'),
])->extraAttributes([
'style' => 'float: right; '
]),
TextInput::make('cart_title')
->label('Title')
->required(),
Textarea::make('cart_content')
->label('Content')
->rows(2)
->required(),
])