<!-- BEGIN RECENT WORKS -->
@php
  $data=session('lng');
@endphp
<div class="row recent-work margin-bottom-40">
  <div class="col-md-6">
    <h2 style="text-align: center;margin-bottom: 30px; padding:10px; background-image: linear-gradient(to left, #0260ae 0%, #3e92d8 51%, #0260ae 100%);">
        <a href="#" style="color:#fff;">News & Notice</a></h2>
  
    <div class="col-md-8" style="padding-top:5px">
      @foreach($new as $news)

      @php
             $mydate = strtotime($news->date);
             $ss =date('d F Y l j', $mydate);
             $date=explode(" ", $ss);
      @endphp

      <div class="recent-work-item" style="width:100%;margin-bottom: 15px;">
        <em>
          <img src="{{url('img/News/'.$news->token)}}.jpg?t={{ rand() }}" alt="Img" class="img-responsive" style="margin:0 auto" width="85%">
          <a href="{{$data}}/news/{{$news->title}}?id={{$news->token}}"><i class="fa fa-link"></i></a>
          <a href="{{url('img/News/'.$news->token)}}.jpg?t={{ rand() }}" class="fancybox-button" title="{{ $news->title }}" data-rel="fancybox-button"><i class="fa fa-search"></i></a>
        </em>
        <a class="recent-work-description" href="javascript:;">
          <strong>{{ $news->title }}</strong>
          <b>{{$date[4]}} {{$date[1]}} {{$date[2]}}</b>
        </a>
      </div>
      @endforeach
    </div>
  </div>

<!-- END RECENT WORKS -->


<div class="col-md-6">
            <h2 style="color:#fff; text-align: center;margin-bottom: 30px; padding:10px; background-image: linear-gradient(to left, #0260ae 0%, #3e92d8 51%, #0260ae 100%);">Events</h2>
            @foreach($events as $event)
            <div class="col-md-6 col-sm-4" style="padding-bottom: 75px">
              <!-- BEGIN CAROUSEL -->
              <div class="front-carousel">
                <div class="carousel slide" id="myCarouselE">
                  <!-- Carousel items -->
                  <div class="carousel-inner">
                    <div class="item" style="display: block;">
                      <img alt="" src="{{url('img/Event/'.$event->file_name)}}" >
                    </div>
                   
                  </div>
                  <!-- Carousel nav -->
            
                </div>
              </div>
              <!-- END CAROUSEL -->
            </div>
            <div class="col-md-6 col-sm-8">
              <h3><a href="blog-item.html">{{$event->title}}</a></h3>
              <ul class="blog-info">
                 @php
                  $mydate = strtotime($event->date);
                  $ss =date('Y m d', $mydate);
                  $date=explode(" ", $ss);
                @endphp
                <li><i class="fa fa-calendar"></i> {{$date[0]}}/{{$date[1]}}/{{$date[2]}}</li>
            
                <li><i class="fa fa-tags"></i> {{$event->location}}</li>
              </ul>
              <p>{!!implode(" ", array_slice(explode(" ",strip_tags($event->description)), 0, 25))!!}...</p>
              <a href="{{$data}}/event/{{$event->title}}?id={{$event->token}}" class="more">Read more <i class="icon-angle-right"></i></a>
            </div>
            <div class="clearfix"></div>
            @endforeach

          </div>
</div>
          <hr class="blog-post-sep">

       