@extends("layouts.app_new") @section("title") Experts @endsection @section("content") Institutions Choose Institution @foreach($institution as $Inst) id)?"selected":""}} value="{{$Inst->id}}">{{$Inst->sub_institution_name}}, {{$Inst->name}} @endforeach Area of Interest Choose an Area of Interest @foreach($main_keywords as $a_o_i) id)?"selected":""}} value="{{$a_o_i->id}}">{{$a_o_i->keyword_en}} @endforeach Filter Clear @if(url()->full() != url("experts")) @forelse($experts as $expert) @if($expert->photo) @if(Auth::user()->expert == 1) @endif @else @if(Auth::user()->expert == 1) @endif @endif @if(Auth::user()->expert == 1) {{trim($expert->first_name." ".$expert->last_name)}} @else {{trim($expert->first_name." ".$expert->last_name)}} @endif @php $string = ""; @endphp @foreach($expert->institutions as $institution) @php $string .= $institution->sub_institution_name." ".$institution->name.", "; @endphp @endforeach {{substr($string, 0, -1)}} @empty No Results Found... @endforelse @else Start searching by name, area of interest or institution. @endif @endsection @section("script") @endsection
@php $string = ""; @endphp @foreach($expert->institutions as $institution) @php $string .= $institution->sub_institution_name." ".$institution->name.", "; @endphp @endforeach {{substr($string, 0, -1)}}