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 | Action | Comments | Customernumber | |
---|---|---|---|---|---|---|---|---|
1 | 2023-07-29 00:00:00 | 29.07.2023 00:00:00 | 30.07.2020 00:00:00 | Not Shipped | 0 | Great | 363 | View Edit Remove |
2 | 2023-01-18 00:00:00 | 18.01.2023 00:00:00 | 14.01.2003 00:00:00 | Shipped | 0 | Great Great | 181 | View Edit Remove |
3 | 2022-02-07 00:00:00 | 07.02.2022 00:00:00 | 02.02.2003 00:00:00 | Shipped | 0 | MMM | 121 | View Edit Remove |
4 | 2022-02-07 00:00:00 | 07.02.2022 00:00:00 | 19.02.2003 00:00:00 | Shipped | 0 | Hi | 141 | View Edit Remove |
5 | 2003-02-11 00:00:00 | 21.02.2003 00:00:00 | 12.02.2003 00:00:00 | Shipped | 0 | Item 1 | 145 | View Edit Remove |
6 | 2024-02-24 00:00:00 | 24.02.2024 00:00:00 | 21.02.2003 00:00:00 | Shipped | 0 | Great Item | 278 | View Edit Remove |
7 | 2003-02-24 00:00:00 | 03.03.2003 00:00:00 | 26.02.2003 00:00:00 | Shipped | 0 | Difficult to negotiate with customer. We need | 131 | View Edit Remove |
8 | 2003-03-03 00:00:00 | 12.03.2003 00:00:00 | 08.03.2003 00:00:00 | Shipped | 0 | 385 | View Edit Remove | |
9 | 2003-03-10 00:00:00 | 19.03.2003 00:00:00 | 11.03.2003 00:00:00 | Shipped | 0 | Customer requested that FedEx Ground is used for | 486 | View Edit Remove |
10 | 2003-03-18 00:00:00 | 24.03.2003 00:00:00 | 20.03.2003 00:00:00 | Shipped | 0 | 187 | View Edit Remove |