Field Grouping
Simple column grouping, summation of a column value and inline editing.
public function field_grouping() { $xcrud = get_xcrud(); $xcrud->table('payments'); $xcrud->unset_remove(); $xcrud->group_by_columns('customerNumber');//Allows only one field $xcrud->group_sum_columns('amount');//Allows only one field $xcrud->columns('customerNumber,checkNumber,amount'); $xcrud->fields_inline('customerNumber,checkNumber,paymentDate,amount'); $data['content'] = $xcrud->render(); return view('demos', $data); }