Exemplo n.º 1
0
 /**
  *crear unidad
  *
  *return Response
  */
 public function create()
 {
     $employees = Employee::whereClientId(Auth::user()->client_id)->orderBy('name')->lists('name', 'id');
     $managements = Management::whereClientId(Auth::user()->client_id)->orderBy('name')->lists('name', 'id');
     return view('entity.units.create', compact('employees', 'managements'));
 }
Exemplo n.º 2
0
 /**
  *crear cargo
  *
  *return Response
  */
 public function create()
 {
     $managements = Management::whereClientId(Auth::user()->clientId)->orderBy('name')->lists('name', 'id');
     $units = Unit::whereClientId(Auth::user()->clientId)->orderBy('name')->lists('name', 'id');
     return view('entity.charges.create', compact('managements', 'units'));
 }