Dependent dropdowns


public function dependent_dropdowns()
{
  $xcrud = get_xcrud();
  $xcrud->table('consultation');
  $xcrud->relation('office','offices','officeCode','city');
  $xcrud->relation('manager','employees','employeeNumber',array('firstName','lastName'),'','','',' ','','officeCode','office');
  
  $xcrud->relation('country','meta_location','id','local_name','type = \'CO\'');
  $xcrud->relation('region','meta_location','id','local_name','type = \'RE\'','','','','','in_location','country');
  $xcrud->relation('city','meta_location','id','local_name','type = \'CI\'','','','','','in_location','region');
    
  $data['content'] = $xcrud->render();
  
  return view('demos', $data);
}

Consultation

#NameDateOfficeManagerCountryRegionCity 
1
2
3117.02.2024ParisMartin GerardComoros Anjouan
4
5
6
7
8SydneyMartin GerardAustralia Queensland Bargara
9
Search