/** * Display a listing of the resource. * * @return Response */ public function index() { $data = Employee::all(); $name = Auth::user()->name; $pos = ProjectOfficer::all(); $adms = Admin::all(); $tls = Teamleader::all(); $mems = Member::all(); return view('dropmin.dashboard.index')->with('data', $name)->with('pos', $pos)->with('adms', $adms)->with('tls', $tls)->with('mems', $mems)->with('data', $data); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $data = Employee::all(); $name = Auth::user()->name; $pos = ProjectOfficer::all(); $adms = Admin::all(); $tls = Teamleader::all(); $mems = Member::all(); $proj = Project::all(); $ac = Auth::user()->id; $acc = AccessClient::where('id_users', $ac)->get(); return view('dropmin.dashboard.index')->with('data', $name)->with('pos', $pos)->with('adms', $adms)->with('tls', $tls)->with('mems', $mems)->with('projs', $proj)->with('accss', $acc)->with('datas', $data); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // Start Check Authorization $invalid_auth = 1; $authRole = Auth::user()->UserRoles->role; if ($authRole == 1 or $authRole == 3 or $authRole == 5 or $authRole == 7 or $authRole == 9) { $invalid_auth = 0; } if ($invalid_auth == 1) { Alert::error('Anda tidak memilik akses ini')->persistent('close'); return redirect('dashboard'); } // End Check Authorization $data = Employee::all(); $name = Auth::user()->name; $pos = ProjectOfficer::all(); $adms = Admin::all(); $tls = Teamleader::all(); $mems = Member::all(); return view('dropmin.record.index')->with('data', $name)->with('pos', $pos)->with('adms', $adms)->with('tls', $tls)->with('mems', $mems)->with('datas', $data); }