
           <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-8">  <h4>{{$pic->name}} </h4></div>
                   @if(Session::get('auth_selected_profile')==$pic->profile_id)
                 <div class="col-sm-4 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
                       {{--*/ $viewName = @end( @explode( '.', $pic->path ) ) /*--}}
                      @if($viewName=='txt')
                      {{--*/ $addfile='images/text.png' /*--}}
                      @endif
                      @if($viewName=='doc')
                      {{--*/ $addfile='images/doc.png' /*--}}
                      @endif
                      @if($viewName=='docx')
                      {{--*/ $addfile='images/docx.png' /*--}}
                      @endif
                      @if($viewName=='pdf')
                      {{--*/ $addfile='images/pdf.png' /*--}}
                      @endif
                       @if($viewName=='xls')
                      {{--*/ $addfile='images/xls.png' /*--}}
                      @endif
                       @if($viewName=='xlsx')
                      {{--*/ $addfile='images/xlsx.png' /*--}}
                      @endif
                       @if($viewName=='rtf')
                      {{--*/ $addfile='images/rtf.png' /*--}}
                      @endif
                      <div class="col-sm-12"><div class="col-sm-offset-2 col-md-offset-4"> <a href="{{URL::to('res_download', array($pic->id))}}">  <img class="img-responsive" src="{{$addfile}}"  alt=""/></a></div>
                      </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}} unlike_col" 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 class="clearfix"></div>             
                             
             </div>
             @endforeach 
          @else 
             <div class="col-sm-4 findlen">
                                 <h4>No Resumes Found</h4>
             </div>
          @endif
        </div>