@extends('admin')

@section('style')
<style type="text/css">
  img { height: 120px;}
  .object-fit_fill { object-fit: fill }
  .object-fit_contain { object-fit: contain }
  .object-fit_cover { object-fit: cover }
  .object-fit_none { object-fit: none }
  .object-fit_scale-down { object-fit: scale-down }
  #img_fit{
    float: left;
    width: 40%;
    margin: 0 30px 20px 0; display: block;
  }
</style>
@endsection

@section('content')
<section class="row">
  <div class="col-sm-12">
      @include('partials.notif.error')
      @include('partials.notif.success')
      <section class="row">
          @include('pages.doctor._partials.nav-pills')
          <div class="col-sm-12">

            <div class="card text-center">
              <div class="card-header">
                <ul class="nav nav-tabs card-header-tabs">
                  <li class="nav-item">
                    <a class="nav-link active" href="{{route('subdoctor')}}">Back</a>
                  </li>
                </ul>
              </div>
              
              <div class="card-block">
                <div class="card text-left" style="width: 100%; border-style: none;">
                  <div class="card-body">
                    <section class="row">
                      <div class="col-sm-6">
                        <div class="card">
                          <div class="card-block">
                            
                          <img class="img-fluid card-img-top" src="{{asset('storage/'. $subdoctor['img_head'] .'')}}" data-holder-rendered="true">
                          </div>
                        </div>
                      </div>
                      <div class="col-sm-6">
                        <div class="">
                          <div class="card-block">
                            <br>
                            <div class="card-body">
                              <h4 class="card-title">{{$subdoctor['name']}}</h4>
                              <p class="lead">{{$subdoctor['sub_title']}}</p>
                              <small>{{$subdoctor['quote']}}</small>
                              <hr>
                              <p class="card-text">{!! $subdoctor['content'] !!}</p>
                            </div>
                          </div>
                          <div class="card-footer">
                            {{$subdoctor['created_at']}}
                          </div>
                        </div>
                      </div>
                    </section>
                  </div>
                </div>
              </div>
            </div>
          </div>
      </section>
      <section class="row">
          {{-- <div class="col-12 mt-1 mb-4">Template by <a href="https://www.medialoot.com">Medialoot</a></div> --}}
      </section>
  </div>
</section>
@endsection

@section('javascript')
<script type="text/javascript">
  $('#bs-example-navbar-collapse-1').on('show.bs.collapse', function() {
    $('.nav-pills').addClass('nav-stacked');
  });

  //Unstack menu when not collapsed
  $('#bs-example-navbar-collapse-1').on('hide.bs.collapse', function() {
      $('.nav-pills').removeClass('nav-stacked');
  });
</script>
@endsection