@extends('layouts.master')
  @section('page_title')
      @if(isset($page_title))
          {{ $page_title }}
      @endif
  @endsection
@section('css')
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
@endsection
@section('content')
  <div class="">
      <div class="page-title">
        <div class="title_left">
          <div class="title_left">
            <ol class="breadcrumb">
              <li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
              <li class="active">Team Members</li>
            </ol>
          </div>
        </div>

        <div class="title_right">
          <div class="row">
            <form method="GET" action="{!! url('staffmembers') !!}">
              <div class="col-md-5 col-sm-5 col-xs-12 form-group">
                <div style="margin-top:1px; margin-right:-90px;" class="top_search">
                </div>
              </div>
              <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
                <div class="input-group">
                  <input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
                  <span class="input-group-btn">
                    <button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
                  </span>
                </div>
              </div>
            </form>
          </div>
          <div class="row">
              <div class="col-sm-12">
              <div class="pull-right"></div>
              </div>
          </div>
        </div>
      </div>
      <div class="clearfix"></div>
      <div class="row">
        @include('commons.notifications')
        <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
          <div class="x_title">
            <h2> Team Members </h2>
            <div class="pull-right">
                <a class="btn btn-primary btn-sm" href="{!! url('staffmembers/create') !!}"><i class="fa fa-plus-circle"></i> New Staff Member</a>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="x_content">
            @foreach($staff_members as $row)
            <div class="col-md-4 col-sm-4 col-xs-12 profile_details">
                <div class="well profile_view">
                  <div class="col-sm-12">
                    <h4 class="brief"><i>{{ $row->designation }}</i></h4>
                    <div class="left col-xs-7">
                      <h2>{{ $row->name }}</h2>
                      <p><strong>Job Title: </strong> {{ $row->job_title or 'N/A' }} </p>
                      <p><strong>Country: </strong> {{ $row->location_country or 'N/A' }} </p>
                      <ul class="list-unstyled">
                        <li><i class="fa fa-envelope"></i> Email: {{ $row->email }} </li>
                        <li><i class="fa fa-phone"></i> Phone #: {{ $row->phone or 'N/A' }} </li>
                        <li><i class="fa fa-calendar"></i> DOB #: {{ $row->dob or 'N/A' }} </li>
                      </ul>
                    </div>
                    <div class="right col-xs-5 text-center">
                      <img src="{{ url('public/staff_members/profile_pics/profile.jpg')}}" alt="" class="img-circle img-responsive" width="">
                    </div>
                  </div>
                  <div class="col-xs-12 bottom text-center">
                    <!-- <div class="col-xs-12 col-sm-6 emphasis">
                      <p class="ratings">
                        <a>4.0</a>
                        <a href="#"><span class="fa fa-star"></span></a>
                        <a href="#"><span class="fa fa-star"></span></a>
                        <a href="#"><span class="fa fa-star"></span></a>
                        <a href="#"><span class="fa fa-star"></span></a>
                        <a href="#"><span class="fa fa-star-o"></span></a>
                      </p>
                    </div> -->
                    <div class="col-xs-12 col-sm-6 emphasis">
                      <!-- <button type="button" class="btn btn-success btn-xs"> <i class="fa fa-user">
                        </i> <i class="fa fa-comments-o"></i> 
                      </button> -->
                      <a class="btn btn-primary btn-xs" href="{{ url('staffmembers/profile', $row->id) }}">
                        <i class="fa fa-user"> </i> View Profile
                      </a>
                    </div>
                  </div>
                </div>
              </div>
              @endforeach
          </div>
        </div>
      </div>
    </div>
</div>

@endsection

@section('javascript')
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
  <script type="text/javascript">
  $(document).ready(function(){
    
    
    
});

</script>
@endsection
