@extends('front.layouts.master')

@section('seo_title', $global_other_page_items->page_team_members_seo_title)
@section('seo_meta_description', $global_other_page_items->page_team_members_seo_meta_description)

@section('content')
<!-- Banner Section -->
<section class="page-title" style="background-image: url({{ asset('uploads/'.$global_setting->banner) }});">
    <div class="auto-container">
        <div class="title-outer">
            <h1 class="title">{{ $global_other_page_items->page_team_members_title }}</h1>
            <ul class="page-breadcrumb">
                <li><a href="{{ url('/') }}">{{ __('Home') }}</a></li>
                <li>{{ $global_other_page_items->page_team_members_title }}</li>
            </ul>
        </div>
    </div>
</section>
<!-- // Banner Section -->


<!-- Team Section -->
<section class="">
    <div class="container pb-90">
        <div class="row">
            @foreach($team_members as $row)
            <div class="team-block-two col-lg-4 col-md-6 col-sm-12">
                <div class="inner-box mb-md-30">
                    <div class="image-box">
                        <figure class="image"><a href="{{ route('team_member',$row->slug) }}"><img src="{{ asset('uploads/'.$row->photo) }}" alt=""></a></figure>

                        @if($row->facebook != '' || $row->twitter != '' || $row->linkedin != '' || $row->instagram != '' || $row->youtube != '' || $row->pinterest != '' )
                        <div class="social-links">
                            
                            @if($row->facebook != '')
                                <a href="{{ $row->facebook }}" target="_blank"><i class="fab fa-facebook-f"></i></a>
                            @endif
                            
                            @if($row->twitter != '')
                                <a href="{{ $row->twitter }}" target="_blank"><i class="fab fa-twitter"></i></a>
                            @endif

                            @if($row->linkedin != '')
                                <a href="{{ $row->linkedin }}" target="_blank"><i class="fab fa-linkedin"></i></a>
                            @endif

                            @if($row->instagram != '')
                                <a href="{{ $row->instagram }}" target="_blank"><i class="fab fa-instagram"></i></a>
                            @endif

                            @if($row->youtube != '')
                                <a href="{{ $row->youtube }}" target="_blank"><i class="fab fa-youtube"></i></a>
                            @endif

                            @if($row->pinterest != '')
                                <a href="{{ $row->pinterest }}" target="_blank"><i class="fab fa-pinterest-p"></i></a>
                            @endif
                        </div>
                        <span class="share-icon fa fa-plus"></span>
                        @endif
                    </div>
                    <div class="info-box">
                        <h4 class="name"><a href="{{ route('team_member',$row->slug) }}">{{ $row->name }}</a></h4>
                        <span class="designation">{{ $row->designation }}</span>
                    </div>
                </div>
            </div>
            @endforeach
        </div>
    </div>
</section>
<!-- // Team Section -->

@endsection