Download Laravel-xCRUD Integration Full Code that includes this full demo


<?php

namespace App\Http\Controllers;

use 
Illuminate\Http\Request;

class 
xGroupingController extends Controller
{
    public function 
index()
    {
        
$xcrud Xcrud_get_instance();
        
$xcrud->table('employees');
        
$xcrud->table_name('Employees Form fields grouped ');
        
$xcrud->validation_required('lastName',2)->validation_required('firstName',2)->validation_required('jobTitle');
        
$xcrud->validation_required('email');
        
$xcrud->validation_pattern('email','email')->validation_pattern('extension','alpha_numeric')->validation_pattern('officeCode','natural');
        
$xcrud->relation('officeCode','offices','officeCode','city');
        
$xcrud->limit(10);
     
        
//Fields arrangement
        
$xcrud->fields_arrange('firstName,lastName,extension','Group 1-Names',true); //First row - {fields,group name,show/hide group name}
        
$xcrud->fields_arrange('email','Group 2 - Contacts',true); //Second row
        
$xcrud->fields_arrange('officeCode,reportsTo','Group 3 - Location',true); //Third row
        
$xcrud->fields_arrange('jobTitle','Group 4 - Position',true); //Fourth row
     
        
$xcrud->fields_inline('lastName,firstName,extension,email,jobTitle,officeCode,reportsTo');//set the fields to allow inline editing
        
$xcrud->inline_edit_save('enter_only');// Can be 'enter_only' or 'button_only'  or 'enter_button_only'
     
        
$render $xcrud->render();
        return 
view('xcrud_simple', ['render' => $render]);
    }
}

Employees Form fields grouped

#LastnameFirstnameExtensionEmailOfficecodeReportstoJobtitle 
1MurphysDiane234james@classicmodelcars.comNYC1232President View Edit Remove
2PattersonMaryx324mpatterso@classicmodelcars.comLondon10090VP Sales View Edit Remove
3FirrelliJeffx9273gbondur@classicmodelcars.comLondon1002VP Marketing View Edit Remove
4Patterson123x4645wpatterson@classicmodelca.comLondon1056Sales Manager (APAC) View Edit Remove
5BondurGerard2x540ygbondur@classicmodelcars.comNYC1050Sale Manager (EMEA) View Edit Remove
6BowAnthony8x5428abow@classicmodelcars.comSan Francisco1056Sales Manager (NA) View Edit Remove
7JenningsLesliex540ljennings@classicmodelcars.comTokyo1143Sales Rep 2 View Edit Remove
8ThompsonLesliex4065lthompson@classicmodelcars.comSan Francisco1143Sales Rep 3 View Edit Remove
9FirrelliJuliex2173jfirrelli@classicmodelcars.comBoston1143Sales Rep View Edit Remove
10PattersonStevex4334spatterson@classicmodelcars.comBoston1143Sales Rep View Edit Remove
Search