как я могу создать столбец таблицы с группой, содержащей компонент?
TD::make('status', __('Payment status'))
->render(fn (BillPayment $model) => Group::make([
Layout::component(BillPaymentStatusComponent::class),
Button::make(__('Confirm payment'))
->method('confirmPayment', [
'model' => $model
])
->canSee($model->status == 'pending')
])),
И когда я пытаюсь это сделать, я получаю сообщение об ошибке:
Object of class Orchid\Screen\Layouts\Component@anonymous could not be converted to string
Подробнее здесь: https://stackoverflow.com/questions/786 ... -component