Highlights

Highlight separate cells and full rows.


public function highlights ()
{
  $xcrud = get_xcrud();
  $xcrud->table('orderdetails');
  $xcrud->highlight('quantityOrdered', '<', 25, 'red');
  $xcrud->highlight('quantityOrdered', '>=', 25, 'yellow');
  $xcrud->highlight('quantityOrdered', '>', 40, '#8DED79');
  $xcrud->highlight_row('quantityOrdered', '>=', 50, '#8DED79');
  $xcrud->highlight('priceEach', '>', 100, '#9ADAFF');     
  $xcrud->modal(array('quantityOrdered'=>'glyphicon glyphicon-search'));
    
  $data['content'] = $xcrud->render();
  
  return view('demos', $data);
}

Orderdetails

#OrdernumberProductcodeQuantityorderedPriceeachOrderlinenumber 
110100S18_17491364
210100S18_224855.092
310100S18_440975.464
410100S24_396935.291
510101S24_193732.533
610101S24_202244.352
710102S18_134295.552
810102S18_136743.131
910103S10_1949214.311
1010103S10_4962119.674
Search