{{$name}}
@php // $content = App\Models\ScientistProfile::with('department')->where('staff_id',$submenu->id)->where('publish',1)->get(); $id = $submenu->id; $Designation = App\Models\Designation::with(['scientists' => function($query) use($id) { $query->where('staff_id', $id)->where('publish', 1); }])->orderBy('orderby')->get(); //dd($Designation); @endphp
{{--
--}} @foreach($Designation as $content) {{-- {{$content->name}} --}}
@forelse($content->scientists as $profile) @empty @endforelse
@endforeach {{-- @forelse($content as $profile)
@if ($profile->profile_image != NULL) Card image cap @else Card image cap @endif
@empty @endforelse --}} {{--
--}}