/**
  * listar anticipos por empresa
  *
  * @return Response
  */
 public function index(Request $request)
 {
     $year = $request->get('year', date('Y'));
     $month = $request->get('month', date('m'));
     $contracts = Contract::whereClientId(Auth::user()->client_id)->with('employee')->get();
     return view('humanresources.remunerations.index', compact('contracts', 'year', 'month'));
 }
Пример #2
0
 public function getCmb()
 {
     $employees = Contract::whereClientId(Auth::user()->client_id)->whereStatus('Vigente')->with('employee')->get()->lists('employee.name', 'employee.id');
     return $employees;
 }