Download Laravel-xCRUD Integration Full Code that includes this full demo
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class xEditorController extends Controller
{
public function index()
{
$xcrud->table('orders');
$xcrud->change_type('status','select','','On Hold,In Process,Resolved,Shipped,Disputed,Cancelled');
$xcrud->change_type('orderDate','none');
$xcrud->change_type('description','texteditor');
$render = $xcrud->render();
return view('xcrud_simple', ['render' => $render]);
}
}
# | Orderdate | Requireddate | Shippeddate | Status | Comments | Customernumber | |
---|---|---|---|---|---|---|---|
1 | 2003-10-23 00:00:00 | 30.10.2003 00:00:00 | Cancelled | Customer called to cancel. The warehouse was | 448 | View Edit Remove | |
2 | 2003-11-04 00:00:00 | 12.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 452 | View Edit Remove | |
3 | 2003-11-05 00:00:00 | 13.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 233 | View Edit Remove | |
4 | 2003-11-05 00:00:00 | 14.11.2003 00:00:00 | 11.11.2003 00:00:00 | Shipped | 175 | View Edit Remove | |
5 | 2003-11-05 00:00:00 | 15.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | Cautious optimism. We have happy customers here, | 278 | View Edit Remove |
6 | 2003-11-06 00:00:00 | 15.11.2003 00:00:00 | 10.11.2003 00:00:00 | Shipped | 333 | View Edit Remove | |
7 | 2003-11-06 00:00:00 | 14.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | 324 | View Edit Remove | |
8 | 2003-11-06 00:00:00 | 15.11.2003 00:00:00 | 12.11.2003 00:00:00 | Shipped | 386 | View Edit Remove | |
9 | 2003-11-07 00:00:00 | 17.11.2003 00:00:00 | 12.11.2003 00:00:00 | Shipped | 344 | View Edit Remove | |
10 | 2003-11-08 00:00:00 | 16.11.2003 00:00:00 | 10.11.2003 00:00:00 | Shipped | Custom shipping instructions sent to warehouse | 242 | View Edit Remove |