Is it possible to have miltiple tables on one page? I know how to copy the foo project and create my own crud and pages, but I would like to have 2 tables of different data on one page.
is there a module that have this I can check the code from? Otherwise would you please be so kind to help me get to the right direction a little bit?
1 Answers
Hello
You can use ajax_datatable blade for rendering
for example:
$dataTable = new ContactsDataTable();
$dataTable->setResourceUrl('customer/contacts/');
return $dataTable->render('layouts.crud.ajax_datatable'); ajax_datatable can be found under resources/themes/admin/layouts/crud/ajax_datatable.blade.php you can copy it to your theme if it does not exist
return $dataTable->render('layouts.crud.ajax_datatable'); ajax_datatable can be found under resources/themes/admin/layouts/crud/ajax_datatable.blade.php you can copy it to your theme if it does not exist
Please login or Register to submit your answer