Forms\Components\Select::make('client_id')
->native(false)
->preload()
->live()
->relationship('client', 'title',
->required()
->afterStateUpdated(function (Forms\Components\Select $select, $state) {
$select->hintAction(
Forms\Components\Actions\Action::make('View Client Accoutnts')
->action(function () {
info('View Rate Card');
})
);
}
}),
Forms\Components\Select::make('client_id')
->native(false)
->preload()
->live()
->relationship('client', 'title',
->required()
->afterStateUpdated(function (Forms\Components\Select $select, $state) {
$select->hintAction(
Forms\Components\Actions\Action::make('View Client Accoutnts')
->action(function () {
info('View Rate Card');
})
);
}
}),