@extends('webprofile.front.jollyany.master2')

@section('meta')
  <title>{{$data->rDe->title}}</title>
  <meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->rDe->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}">
  <meta name="keywords" content="{{ $data->rDe->keys }}">
  <meta name="author" content="{{ $setting['header_admin'] }}">
@endsection
@section('content')
  <section class="post-wrapper-top jt-shadow clearfix">
    <div class="container">
      <div class="col-lg-12">
        @if ($data->rDe)
          <h2>{!! $data->rDe->title !!}</h2>
        @endif
      </div>
    </div>
  </section><!-- end post-wrapper-top -->

  <section class="blog-wrapper">
    <div class="container">
        <div class="row">
          <div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
            <div class="row">
              <div class="blog-masonry">
                <div class="col-lg-12">
                  <div class="blog-carousel">
                    <div class="blog-carousel-header">
                      @if ($data->rDe)
                      <h1>{!! $data->rDe->title !!}</h1>
                      @endif
                      <div class="blog-carousel-meta">
                          <span><i class="fa fa-calendar"></i>
                          <time title="{!! $data->post_data !!}" datetime="{!! $data->post_data !!}">{!! InseoHelper::tglbulanindo2($data->post_date) !!}</time> - kategori <a href="#">@if ($data->rCategory->rDe) {!! $data->rCategory->rDe->name !!} @endif</a></span>
                          <span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
                          {{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
                      </div><!-- end blog-carousel-meta -->
                    </div><!-- end blog-carousel-header -->
                    <div class="blog-carousel-desc">
                      @if ($data->thumbnail)
                      @if($data->cover_status == 1)
                      <center>
                        @if ($setting['external_storage'] == 1)
                        <img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $data->thumbnail }}" alt=""  style="max-width:708px">
                        @else
                        <img src="{{ url('/storage/thumbnail/' . $data->thumbnail) }}" alt=""  style="max-width:708px">
                        @endif
                      </center>
                      @endif
                      @endif
                      <br>
                      <div class="widget col-md-4 pull-right related hidden-sm hidden-xs kaitan" style="margin-bottom: 5px;">
                        <h4 class="h4_kaitan"><strong>ähnliche Neuigkeiten </strong></h4>
                        <div class="isi_kaitan">
                          <div class="content_kaitan">
                              <ul class="ul_kaitan nav nav-tabs nav-stacked">
                                @foreach($terkait as $valTerkait)
                                @if ($valTerkait->rDe)
                                <li><strong><a title="{!! $valTerkait->rDe->title !!}" href="{!! url('post/'.$valTerkait->slug) !!}">{!! $valTerkait->rDe->title !!}</a></strong></li>
                                @endif
                                @endforeach
                              </ul>
                          </div>
                        </div>
                      </div>
                      @if ($data->rDe)
                      {!! $data->rDe->content !!}
                      @endif
                      <p>
                       <i><b>Share It On:</b></i> </p>
                       <div class="social-icons">
                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Facebook" href="https://www.facebook.com/sharer.php?u={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #1877f2;"><i class="fa fa-facebook" style="color: white;"></i></a>
                        </span>

                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Twitter" href="https://twitter.com/share?url={!! url('/') !!}&amp;text={!! url($data->rDe->title) !!}&amp;hashtags={!! $data->rCategory->rDe->name !!}" data-original-title="" style="background-color: #55acee;"><i class="fa fa-twitter" style="color: white;"></i></a>
                        </span>

                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #007bb5;"><i class="fa fa-linkedin" style="color: white;"></i></a>
                        </span>

                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Email" href="mailto:?Subject={!! $data->rCategory->rDe->name !!}&amp;Body={!! url($data->rDe->title) !!} {!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #0166ff;"><i class="fa fa-envelope" style="color: white;"></i></a>
                        </span>

                        <span>
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="Whatsapp" href="https://wa.me/?text={!! url('post/'.$data->slug) !!}" data-original-title="" style="background-color: #12af0a;"><i class="fa fa-phone" style="color: white;"></i></a>
                        </span>

                        <span class="last">
                          <a data-toggle="tooltip" data-placement="bottom" target="_blank" title="" href="https://telegram.me/share/url?url={!! url('post/'.$data->slug) !!}&amp;text={!! url($data->rDe->title) !!}" data-original-title="Telegram" style="background-color: #2ca5e0;"><i class="fa fa-location-arrow" style="color: white;"></i></a>
                        </span>
                      </div>
                    
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          @include('webprofile.front.jollyany.de.widget')
        </div>
    </div><!-- end container -->
  </section><!--end white-wrapper -->

@endsection
