/** * Menampilkan jadwal shift. * * @return string */ public function index() { if (Auth::check() && Auth::user()->id_karyawan == '1') { $absen = Absen::all(); $laporan = Laporan::all(); $shift = Shift::orderBy("id_shiftline", "DESC")->paginate(10); $employees = Karyawan::all(); $shifts = Shift::shift(); return view('admin/shift/shift')->with("absen", $absen)->with("laporan", $laporan)->with("shift", $shift)->with("employees", $employees)->with("shifts", $shifts); } else { return view('errors/403'); } }