Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function index()
- {
- if (auth()->check()) {
- if (is_null(auth()->user()->trader_id)) {
- if (auth()->user()->status_id == "ROL99") { //Administrator
- return view('admin.home');
- }elseif(auth()->user()->status_id == "ROL10") { //Penerima Berkas - Admin
- if (auth()->user()->commodity_id == "COMOT") {
- return view('penerima_berkas.home');
- }
- }elseif(auth()->user()->status_id == "ROL20") { //Evaluator
- return view('evaluator.home');
- }elseif (auth()->user()->status_id == "ROL30") { // Kasie
- return view('kasie.home');
- }elseif(auth()->user()->status_id == "ROL40") { // Kasubdit
- return view('kasubdit.home');
- }elseif(auth()->user()->status_id == "ROL50") { // Direktur
- return view('direktur.home');
- }
- } else {
- if (auth()->user()->status_id == 'STS00') { //Pelaku Usaha Belum Aktif
- return view('belumaktif');
- } elseif(auth()->user()->status_id == 'STS10') { //Pelaku Usaha Sudah Aktif
- return view('pelaku.home');
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement