Forms\Components\TextInput::make("name")
->label("Name / Company Name")
->maxLength(50)
->suffixAction(
Action::make('select_address')
->icon('heroicon-o-magnifying-glass')
->action(function (callable $get) {
$customer_id = $get('../customer_id');
if (!$customer_id) {
Notification::make()
->danger()
->title('Please select customer First')
->send();
return;
}
})
->modalContent(function (callable $get) {
$customer_id = $get('../customer_id');
return view('filament.addresses.view', compact('customer_id'));
})
->modalSubmitAction(false)
->modalWidth('7xl')
)->inlineSuffix(),
Forms\Components\TextInput::make("name")
->label("Name / Company Name")
->maxLength(50)
->suffixAction(
Action::make('select_address')
->icon('heroicon-o-magnifying-glass')
->action(function (callable $get) {
$customer_id = $get('../customer_id');
if (!$customer_id) {
Notification::make()
->danger()
->title('Please select customer First')
->send();
return;
}
})
->modalContent(function (callable $get) {
$customer_id = $get('../customer_id');
return view('filament.addresses.view', compact('customer_id'));
})
->modalSubmitAction(false)
->modalWidth('7xl')
)->inlineSuffix(),