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

@section('meta')
<meta name="{{ Str::slug($data->title) }}" content="custom"/>
  <meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}">
  <meta name="keywords" content="{{ $data->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">
          <h2>Pengumuman - {!! $data? $data->title : 'Semua Pengumuman' !!}</h2>
      </div>
    </div>
  </section><!-- end post-wrapper-top -->

  <section class="blog-wrapper">
    <div class="container">
      {{--
    @foreach($informations as value)
    <div class="row">
               <div class="headline">
                  <h2><a target="_blank" href="{!! url('information/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
               </div>
               <div class="news-text">
                  <strong> {!! InseoHelper::tglbulanindo2($value->event_date) !!}</strong> — 
                           {!! strip_tags(substr(html_entity_decode($value->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}
                            <br><a class="pull-right" style="padding-right: 20px;"  target="_blank" href="{!! url('information/'.$value->slug) !!}">
                                    Selengkapnya »»</a>
                </div>
              </div>
      @endforeach--}}
        <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">
                      <h1>{!! $data->title !!}</h1>
                      <div class="blog-carousel-meta">
                          <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">
                      {!! $data->content !!}
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>

       
            <div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
              <div class="widget">
                <div class="title"><h2>
                  <h2>Semua Pengumuman</h2>
                  <ul class="nav nav-tabs nav-stacked">
                    @foreach($informations as $value)
                      <li><a class="unesa-link" href="{!! url('information/'.$value->slug) !!}">{!! $value->slug !!}</a></li>
                    @endforeach
                  </ul>

                

                  @foreach ($widget_right as $vwidget_right)
                  <div class="widget">
                    <div class="title">
                          <h2>{!! $vwidget_right->title_design !!}</h2>
                      </div><!-- end title -->
                      {!! $vwidget_right->value_design !!}
                  </div><!-- end widget --> 
                  @endforeach
                </div>
              </div>
            </div>

        </div>
    </div><!-- end container -->
  </section><!--end white-wrapper -->

@endsection
