Double tables on 1 page

Double tables on 1 page

Laraship QuestionsCategory: TechnicalDouble tables on 1 page
st3fan asked 2 weeks ago
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
laraship Staff answered 2 weeks ago
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

70% OFF

No Minimum, No Exceptions
 
GO TO STORE
close-link