fdsfsdfsdf
       <div class="row bg-container new_pic">
           @if($data->count() > 0)
             @foreach($data as $pic)
             <div class="col-sm-4 findlen">
                 <div class="col-sm-6">  <h4>{{$pic->name}} </h4></div>
                 @if(Session::get('auth_selected_profile')==$pic->profile_id)
                 <div class="col-sm-6 ft-right"> @if($pic->access=='PUB')
                     <span class="lock-icon">  <a href="{{url('pictures/'.$pic->id.'?access=lock')}}"><i class="fa fa-unlock"></i></a></span>
                                @else
                                <span class="lock-icon">     <a href="{{url('pictures/'.$pic->id.'?access=unlock')}}"><i class="fa fa-lock"></i></a></span>
                                @endif
                                <span class="delete-icon"> <a  href="javascript:void(0)" data-id="{{$pic->id}}"  class="chk_del"><i class="fa fa-trash-o fa-lg"></i></a></span>
                 </div>
                 @endif
                 <div class="col-sm-12 uploaded-image">   <img class="img-responsive" src="images/{{$pic->path}}"  alt=""/></div>
                 
                
                 @if(Session::get('auth_selected_profile')!=$pic->profile_id)
                 <div class="update_likes{{$pic->id}}">
                 @if(in_array($pic->id,$likes))
                 <div class="col-sm-12">   
                     <a href="javascript:void(0)" class="updt_pro like{{$pic->id}}" data-id="{{$pic->id}}" ><span class="glyphicon glyphicon-thumbs-down"></span> (Unlike)</a> 
                 </div>
                 @else
                 <div class="col-sm-12">   
                     <a href="javascript:void(0)" class="updt_pro unlike{{$pic->id}}" data-id="{{$pic->id}}" ><span class="glyphicon glyphicon-thumbs-up"></span> (Like)</a>                 
                 </div>
                 @endif
                 </div>
                 
                 @endif           
                             
             </div>
             @endforeach 
          @else 
             <div class="col-sm-4 findlen">
                                 <h4>No Pictures Found</h4>
             </div>
          @endif
        </div>
         