@extends('main') @section('css') @endsection @section('content') Home Search Search Result @include("left_menu") @foreach($search_data as $key => $value) @endforeach Search @if(count($search_result)) Save Search @endif {{dd($search_result)}} @if(count($search_result)) @foreach($search_result as $pro) @if($pro->access=='PUB') {{$pro->name}} @if($pro->profile_image && is_file('uploads/profile_images/'.$pro->profile_image)) @else @endif @if(!empty($pro->skills)) {{ str_limit($pro->skills, $limit = 9, $end = '...') }} @else {{'Not Provided'}} @endif @if(!empty($pro->city)) {{ str_limit($pro->city, $limit = 9, $end = '...') }} @else {{'Not Provided'}} @endif @if(count($res1)>0 && count($res2)>0 && in_array($pro->id,$res1['likes_id']) && in_array($user_id,$res2['like_user_id'])) (Unlike) @else (Like) @endif @if(count($follow)>0 && in_array($pro->id,$follow['following_profile_id'])) (Unfollow) @else Follow @endif Mentor Request