Download Laravel-xCRUD Integration Full Code that includes this full demo
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class xRelationGroupingController extends Controller
{
public function index()
{
$xcrud = Xcrud_get_instance();
$xcrud->table('gallery');
$xcrud->change_type('image', 'image', false, array(
'width' => 450,
'path' => '../uploads/gallery',
'thumbs' => array(array(
'height' => 55,
'width' => 120,
'crop' => true,
'marker' => '_th'))));
$xcrud->column_callback("active","getStatusSwitchRadio_Gallery");
$xcrud->create_action("deactivate_gallery","deactivate_gallery");
$xcrud->create_action("activate_gallery","activate_gallery");
$render = $xcrud->render();
return view('xcrud_simple', ['render' => $render]);
}
}
# | Lastname | Firstname | Extension | Officecode | Reportsto | Jobtitle | ||
---|---|---|---|---|---|---|---|---|
Officecode: NYC (2 items) | ||||||||
1 | Murphys | Diane | 234 | james@classicmodelcars.com | NYC | 1232 | President | View Edit Remove |
5 | Bondur | Gerard2 | x540y | gbondur@classicmodelcars.com | NYC | 1050 | Sale Manager (EMEA) | View Edit Remove |
Officecode: London (3 items) | ||||||||
2 | Patterson | Mary | x324 | mpatterso@classicmodelcars.com | London | 10090 | VP Sales | View Edit Remove |
3 | Firrelli | Jeff | x9273 | gbondur@classicmodelcars.com | London | 1002 | VP Marketing | View Edit Remove |
4 | Patterson | 123 | x4645 | wpatterson@classicmodelca.com | London | 1056 | Sales Manager (APAC) | View Edit Remove |
Officecode: San Francisco (2 items) | ||||||||
6 | Bow | Anthony8 | x5428 | abow@classicmodelcars.com | San Francisco | 1056 | Sales Manager (NA) | View Edit Remove |
8 | Thompson | Leslie | x4065 | lthompson@classicmodelcars.com | San Francisco | 1143 | Sales Rep 3 | View Edit Remove |
Officecode: Tokyo (1 items) | ||||||||
7 | Jennings | Leslie | x540 | ljennings@classicmodelcars.com | Tokyo | 1143 | Sales Rep 2 | View Edit Remove |
Officecode: Boston (2 items) | ||||||||
9 | Firrelli | Julie | x2173 | jfirrelli@classicmodelcars.com | Boston | 1143 | Sales Rep | View Edit Remove |
10 | Patterson | Steve | x4334 | spatterson@classicmodelcars.com | Boston | 1143 | Sales Rep | View Edit Remove |