protected function getEditBillItemFormSchema(): array
{
return [
Forms\Components\Card::make([
// Input::medicalBillType('type', $this->bill_items->pluck('type')->toArray())->reactive()->disabled(),
Forms\Components\TextInput::make('type')->disabled(),
Input::decimalInput('fee')->required(),
Forms\Components\DatePicker::make('date_of_care')
->visible(fn (\Closure $get) => $get('type') === 'physication')
->required(),
Forms\Components\Textarea::make('description')->rows(2)->cols(20)
->nullable()->maxLength(250)->columnSpanFull(),
FileUpload::make('attachments')->multiple()->directory(fn (\Closure $get) => $get('type'))->columnSpanFull(),
// Input::fileUpload('attachments')->directory(fn (\Closure $get) => $get('type'))->columnSpanFull(),
])->columns(2),
];
}
protected function getEditBillItemFormSchema(): array
{
return [
Forms\Components\Card::make([
// Input::medicalBillType('type', $this->bill_items->pluck('type')->toArray())->reactive()->disabled(),
Forms\Components\TextInput::make('type')->disabled(),
Input::decimalInput('fee')->required(),
Forms\Components\DatePicker::make('date_of_care')
->visible(fn (\Closure $get) => $get('type') === 'physication')
->required(),
Forms\Components\Textarea::make('description')->rows(2)->cols(20)
->nullable()->maxLength(250)->columnSpanFull(),
FileUpload::make('attachments')->multiple()->directory(fn (\Closure $get) => $get('type'))->columnSpanFull(),
// Input::fileUpload('attachments')->directory(fn (\Closure $get) => $get('type'))->columnSpanFull(),
])->columns(2),
];
}