Example #1
0
 /**
  * editar prestamo ccaf
  *
  * @return Response
  */
 public function edit($ccafId)
 {
     $ccaf = $this->ccaf->findOrFail($ccafId);
     $employees = $this->employee->getCmb();
     $types = CcafType::orderBy('name')->lists('name', 'id');
     $compensacions = Compensacion::orderBy('name')->lists('name', 'id');
     return view('humanresources.ccaf.edit', compact('ccaf', 'employees', 'types', 'compensacions'));
 }
 /**
  *crear cliente
  *
  *return Response
  */
 public function create()
 {
     $regions = Region::lists('name', 'id');
     $cities = City::lists('name', 'id');
     $communes = Commune::lists('name', 'id');
     $compensacions = Compensacion::lists('name', 'id');
     $complementaries = Complementary::lists('name', 'id');
     $insurances = Insurance::lists('name', 'id');
     return view('admin.clients.create', compact('regions', 'cities', 'communes', 'compensacions', 'complementaries', 'insurances'));
 }