->mountUsing(function (BulkAction $action, ListAdminInvoices $livewire) { foreach ($action->getModalContent()->getData()['records'] as $value) { $livewire->notes[] = $value['notes']; } })
<input class="..." wire:model.defer="notes.{{ $key }}" type="text" value="{{ $record['notes'] }}">
BulkAction::make('group_wise_transfer') ->action(function (BulkAction $action, Collection $records, array $data) { dump($action->getModalContent()->getData()); dump($data); Notification::make() ->title("Utalás elindítva: " . count($records) . " db számla") ->duration(5000) ->success() ->send(); }) ->label('Csoportos utalás') ->requiresConfirmation() ->modalWidth('5xl') // Set custom modal width ->modalContent(function (Collection $records): View { // CUSTOM LOGIC GOES HERE return view('filament.pages.wise-group-modal', ['all_fee' => $allTransferFee, 'all_gross' => $allGross, 'records' => $toFunding, 'existing' => null]); }) ->color('primary') ->icon('heroicon-s-arrow-right'),
Checkbox::make('active')->default(true),
Forms\Components\Section::make(__('gui.notifications.title')) ->schema([ Select::make('power_plant_id') ->default(now()->format('Y')) ->options(fn (User $record): ?array => $record->powerPlants->pluck('name', 'power_plant_id')->toArray()) ->label(__('gui.powerplants.title')) ->reactive(), Checkbox::make('active')->default(true), CheckboxList::make('notifications') ->options(function (callable $get) { $userId = $get('UserId'); $powerPlantId = $get('power_plant_id'); $notifications = UserPowerPlant::where('user_id', $userId)->where('power_plant_id', $powerPlantId)->get(); return [ 'not_1' => 'All notification', 'not_2' => 'Some notification', 'not_e' => 'No notification', ]; }), ]) ->columns(2) ->columnSpan( ['lg' => 3] ),