i've some problem with passing array, please give me some advice so i can solve this matter... Here is My Controller
$keluhan_list=DB::table('keluhans')
->select(DB::raw('id,produk,username,masalah,id_departemen'))
->where('status','=','Proses')->get();
return view('layanankonsumen.lihattindaklanjut',compact('keluhan_list');
And this is part of My Blade View
@if (Auth::check() && (Auth::user()->level == 'MR' || Auth::user()->level == 'PDD' || Auth::user()->id_departemen ==' @foreach ($keluhan_list as $keluhan) @endforeach' ))
Its not error but its not pass the auth... when i try replace with Auth::user()->id_departemen == '10' its work
via Christianus Andre