Alpine.data('popup', () => ({ open: false,}));
public function __construct() { $this->activeLocale = config('app.locale'); }
ViewComponent
$table->text('description')->nullable();
public function book(): BelongsTo { return $this->belongsTo(Book::class); }
TextInput::make('external_reference') ->label('Your reference') ->required(), Select::make('handler_id') ->label('Handler') ->options(fn () => User::all()->pluck('name', 'id')) ->columnSpanFull() ->searchable() ->required(), Textarea::make('notes'),
return $table ->query(Job::query()) ->defaultSort('created_at', 'desc') ->columns([ TextColumn::make('external_reference') ->searchable() ->label('Your reference'), ->actions([ ViewAction::make('View') ->iconButton(), EditAction::make('Edit') ->form(JobResource::getEditFormFields()) ->iconButton(), DeleteAction::make() ->iconButton(), ]) ->bulkActions([ // ... ]) ->defaultPaginationPageOption(25);