TextColumn::make('Title') ->formatStateUsing(function ($record) { $length = strlen($record->title); return "<b>{$length}</b> /" . LENGTH_TITLE; }) ->html(),
TextInput::make('name') ->columnSpan(10) ->required() ->placeholder('Love') ->live() ->afterStateUpdated(fn ($state, callable $set) => [ $set('title', 'Books about ' . $state), $set('slug', Str::slug('Books about ' . $state)) ]),
Toggle::make('active') ->onColor('success') ->offColor('danger'),