@php // $role = DB::table('ref_role')->get(); $role = DB::table('ref_role') ->where('is_external', '=', DB::raw('(select is_external from ref_role rr where id = :id)')) ->setBindings(['id' => Auth::user()->role_id]) ->get(); $client = DB::table('master_client')->get(); $division = DB::table('ref_division') ->where('is_external', '=', DB::raw('(select is_external from ref_division rd where id = :id)')) ->setBindings(['id' => Auth::user()->division_id]) ->get(); @endphp
{{-- --}}
Foto
Format Gambar PNG,JPG,JPEG maksimal 250 Kb. rekomendasi solusi 420x420
{{-- --}} @foreach ($role as $r) @endforeach
@if(!empty($division)) @foreach ($division as $d) @endforeach @endif
@if(!empty($client)) @foreach ($client as $c) @endforeach @endif