@if(isset($result))
    <div class="row">
        @foreach($result as $instructor)

            <div class="col-md-6 col-lg-4 col-xl-3">
                <div class="single_instractor mb_30">
                    <div class="thumb">
                        <a href="{{route('instructorDetails',[$instructor->id,Str::slug($instructor->name,'-')])}}">
                            <img src="{{getProfileImage($instructor->image,$instructor->name)}}" alt="">
                        </a>
                        @if(!Settings('hide_social_share_btn') =='1')
                            <ul class="instructor_social-links">
                                <li><a href="{{$instructor->facebook}}"><i class="fab fa-facebook-f"></i></a></li>
                                <li><a href="{{$instructor->twitter}}"><i class="fab fa-twitter"></i></a></li>
                                <li><a href="{{$instructor->linkedin}}"><i class="fab fa-linkedin-in"></i></a></li>
                                <li><a href="{{$instructor->youtube}}"><i class="fab fa-instagram"></i></a></li>
                            </ul>
                        @endif
                    </div>
                    <a href="{{route('instructorDetails',[$instructor->id,Str::slug($instructor->name,'-')])}}">
                        <h3 class="member-name">{{$instructor->name}}</h3></a>
                    <div class="designation">{{$instructor->headline}}</div>
                </div>
            </div>
        @endforeach
    </div>
    @if(isset($has_pagination))
        <div class="row">
            @if ($result->hasPages())
                <div class="pagination-wrapper">
                    {{ $result->links(theme('partials._new_pagination')) }}
                </div>
            @endif
        </div>
    @endif
@endif
