return CreateAction::make('taskcNew') ->model(TimesheetTasks::class) ->label(__('nlmn-timesheet-module::timesheet.calendar.calendar_create')) ->form($this->formArray()) ->modalSubmitActionLabel(__('nlmn-timesheet-module::timesheet.submit'));
public function getBreadcrumbs(): array { return ['no way', 'dude']; }
public function getXlsxCellStyle(): Style { return (new Style()) ->setShouldWrapText(false); } public function getXlsxHeaderCellStyle(): Style { return (new Style()) ->setShouldWrapText(false); }
x-init="state = [];"
export function tableComponent() { return { products: [], form: { ref: '', description: '', qtd: 0, unit_value: 0 }, showForm: false, openForm() { this.showForm = true; }, closeForm() { this.showForm = false; this.resetForm(); }, resetForm() { this.form = { ref: '', description: '', qtd: 0, unit_value: 0 }; }, saveProduct() { this.products.push({ ...this.form, total_value: (this.form.qtd * this.form.unit_value).toFixed(2) }); this.closeForm(); }, removeProduct(index) { this.products.splice(index, 1); } };}