#[On('foundContact')]public function foundContact($contact_id){ Log::info("Setting the form"); $contatto = Contact::find($contact_id); $this->data['contact_id'] = $contatto->id; $this->data['country'] = $contatto->country; }
->modalContent(function (Component $livewire, Forms\Get $get) { return view('filament.modal.tablemodal', [ 'componentId' => $livewire->getId(), 'customerId' => $get('customer_id'), ]); })
// in blade <livewire:bank-in-table-modal :componentId="$componentId" :customer_id="$customerId" /> // in livewire public ?string $componentId = null; public ?string $customer_id = null; public function mount($componentId, $customer_id) { $this->componentId = $componentId; $this->customer_id = $customer_id; }
$livewire->dispatch('attach-record', data: $record->select(['id'])->first());$livewire->dispatch('close-modal', id: $this->componentId.'-form-component-action');
#[On('attach-record')]public function useRecord($data){ $this->data['id'] = $data['id'];}
public function endGame() { return Action::make('End') ->icon('heroicon-m-no-symbol') ->color('danger') ->action(function (array $data): void { (new SessionService)->addGame($this->session, $data); });}
->defaultGroup('category')->groupsOnly();