public function panel(Panel $panel): Panel{ return $panel ->plugin( CuratorPlugin::make() ->label('Медиа') ->pluralLabel('Медиа') ->navigationIcon('heroicon-o-photo') ->navigationGroup('Галерея') ->navigationSort(3) ->navigationCountBadge() ->registerNavigation(true) ->defaultListView('grid') );}
public function panel(Panel $panel): Panel{ return $panel ->plugins([ ActivitylogPlugin::make() ->navigationGroup('Logs') ->resource(ActivityResource::class) ->label('Logs'), ]);}
public $translatable = [ 'exterior_options', 'interior_options', 'comfort_options', 'security_options',];protected $casts = [ 'exterior_options' => 'array', 'interior_options' => 'array', 'comfort_options' => 'array', 'security_options' => 'array',];
Forms\Components\Tabs\Tab::make(__('Exterior')) ->schema([ Forms\Components\Repeater::make('exterior_options') ->label(__('Exterior options')) ->defaultItems(0) ->schema([ Forms\Components\TextInput::make('option') ->required() ->label(__('Option')) ]), ]),Forms\Components\Tabs\Tab::make(__('Interior')) ->schema([ Forms\Components\Repeater::make('interior_options') ->label(__('Interior options')) ->defaultItems(0) ->schema([ Forms\Components\TextInput::make('option') ->required() ->label(__('Option')) ]), ]),Forms\Components\Tabs\Tab::make(__('Comfort')) ->schema([ Forms\Components\Repeater::make('comfort_options') ->label(__('Comfort options')) ->defaultItems(0) ->schema([ Forms\Components\TextInput::make('option') ->required() ->label(__('Option')) ]), ]),Forms\Components\Tabs\Tab::make(__('Security')) ->schema([ Forms\Components\Repeater::make('security_options') ->label(__('Security options')) ->defaultItems(0) ->schema([ Forms\Components\TextInput::make('option') ->required() ->label(__('Option')) ]), ]),