By using "PHP Advanced DataTable /PHPDT/" you can create fantastic management pages with ajax requests, you can add a lot of filters types such as: text, select, autocomplete and tag, and build a lot of ajax actions such as: adding, editing and deleting, you can use these actions as bulk or single, all actions and filters works by ajax requests so, no need to reload your page. In addition, it is very easy to build your datatable , filters and actions
ID | Username | Firstname | Lastname | Actions |
---|
Free | Pro | |||
---|---|---|---|---|
Install by composer $ composer require phpdt/ldt |
Download from envato | |||
$0.00
|
$10.00
|
|||
Seperate business from personal spending | ||||
Custom Columns | ✔ | ✔ | ||
Custom Columns | ||||
Custom Render To Column | ✔ | ✔ | ||
Custom Render To Column | ||||
Text Filter | ✔ | ✔ | ||
Text Filter | ||||
"Select" filter | ✔ | ✔ | ||
"Select" filter | ||||
Autocomplete Filter | ✔ | |||
Autocomplete Filter | ||||
Tag Filter | ✔ | |||
Tag Filter | ||||
Link Action | ✔ | ✔ | ||
Link Action | ||||
Ajax Action | ✔ | ✔ | ||
Ajax Action | ||||
Bulk Action | ✔ | |||
Bulk Action |
class Test extends \Phpdt\Ldt\Datatable { const PRIMARY = 'primary key in your table'; static function from(){ return 'your table in your database'; } }
class Edit extends \Phpdt\Ldt\Actions { //Optional var $formview = 'form view (blade template)'; }
$dt = new Your/Datatable/Class( //Columns array( 'firstname' => 'Firstname', 'lastname' => 'Lastname' )); return $dt->display('Your/Blade/Template',$request);in your blade template where you want your datatable appears put the following code:
@include('phpdt::datatable_view') @section('datatable_section') @parent @show
By: Mohammad Alaa Aldeen
Git: https://github.com/mhdalaaaldeen