class PdfToExcel extends Component implements HasForms
{
use InteractsWithForms;
public ?array $data = [];
public function mount(): void
{
$this->form->fill();
}
public function form(Form $form): Form
{
return $form
->schema([
FileUpload::make('file')
->label(__('Choose File'))
->acceptedFileTypes(['application/pdf'])
->storeFiles(false)
->required(),
])->statePath('data');
}
}
class PdfToExcel extends Component implements HasForms
{
use InteractsWithForms;
public ?array $data = [];
public function mount(): void
{
$this->form->fill();
}
public function form(Form $form): Form
{
return $form
->schema([
FileUpload::make('file')
->label(__('Choose File'))
->acceptedFileTypes(['application/pdf'])
->storeFiles(false)
->required(),
])->statePath('data');
}
}