F
Filament7mo ago
ashar

adding input in component

This is a component . public function table(Table $table): Table { return $table ->query(function (VoucherService $voucherService) { return ($voucherService->sessionVoucherQuery($this->record->id)); }) ->columns([ Tables\Columns\TextColumn::make('name')->label('Name'), Tables\Columns\TextColumn::make('voucherable.gameTable.name')->label('Table Name'), Tables\Columns\TextColumn::make('voucherable.gameTable.type')->label('Table Type'), Tables\Columns\TextColumn::make('voucherable.sub_total')->label('Sub Total'), Tables\Columns\TextColumn::make('voucherable.overtime_amount')->label('Overtime'), Tables\Columns\TextColumn::make('voucherable.quantity')->label('Quantity'), Tables\Columns\TextColumn::make('voucherable.total')->label('Total'), Tables\Columns\TextColumn::make('voucher.total')->label('Total'), ]) ->filters([ // ]) ->actions([ Button::make('View')->click(fn ($model) => $this->viewAction($model)), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ // ]), ]); } public function render(): View { return view('livewire.session-billing-view'); } } can i add here a input field where i will calculate the total . Just need to render a field . unable to do it .
0 Replies
No replies yetBe the first to reply to this messageJoin