<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->

<!-- Head BEGIN -->
<head>
  <title>News |  Samuhik Saving & Co-Operative Society Ltd.</title>
@include('Client.Parts.MetaCSS')
    <link rel="stylesheet" href="{{ url('css/eric-calendar.css') }}">
</head>
<!-- Head END -->
@php
  $data=session('lng');
@endphp
<!-- Body BEGIN -->
<body class="corporate">
  @include('Client.Parts.SocialNetwork')

      @include('Client.Parts.Header')

      <!-- Page header -->
<div class="page-top-section margin-bottom-40">
  <div class="overlay"></div>
  <div class="container text-right">
    <div class="page-info">
<h2 style="text-align: center">News</h2>

      <div class="page-links">
        <a href="{{url("$data")}}">Home</a>
        <span>News</span>
      </div>
    </div>
  </div>
</div>
<!-- Page header end-->

    <div class="main">
      <div class="container">
        <!-- BEGIN SIDEBAR & CONTENT -->
        <div class="row margin-bottom-40">
          <!-- BEGIN CONTENT -->
          <div class="col-md-12 col-sm-12">
            <h1>News</h1>
            <div class="content-page">
              <div class="row">
                <!-- BEGIN LEFT SIDEBAR -->
                <div class="col-md-12 col-sm-12 blog-posts">
                  @foreach($news as $new)
                  <div class="row">
                    <div class="col-md-4 col-sm-6">
                      <img class="img-responsive" alt="" src="{{url('img/News/'.$new->token)}}.jpg?t={{rand()}}">
                    </div>
                    <div class="col-md-6 col-sm-6">
                      <h2><a href="blog-item.html">{{$new->title}}</a></h2>
                       @php
                          $mydate = strtotime($new->date);
                          $ss =date('d F Y l j', $mydate);
                          $date=explode(" ", $ss);
                      @endphp
                      <ul class="blog-info">
                        <li><i class="fa fa-calendar"></i> {{$date[4]}} {{$date[1]}} {{$date[2]}}</li>
                       {{--  <li><i class="fa fa-comments"></i> 17</li>
                        <li><i class="fa fa-tags"></i> Metronic, Keenthemes, UI Design</li> --}}
                      </ul>
                      <p>{!!implode(" ", array_slice(explode(" ",strip_tags($new->description)), 0, 50))!!}...</p>
                      <a href="news/{{$new->title}}?id={{$new->token}}" class="more">Read more <i class="icon-angle-right"></i></a>
                    </div>
                    <div class="col-md-2 hidden-xs hidden-sm">
                      <time datetime="" class="icon">
							            <em>{{$date[3]}}</em>
                          <strong> {{$date[1]}} </strong>
                          <span>{{$date[4]}}</span>
							          </time>
                    </div>
                  </div>
                  <hr class="blog-post-sep">
                  @endforeach

                </div>
                <!-- END LEFT SIDEBAR -->
              </div>
            </div>
          </div>
          <!-- END CONTENT -->
        </div>
        <!-- END SIDEBAR & CONTENT -->
      </div>
    </div>

@include('Client.Parts.FooterJs')
</body>
<!-- END BODY -->
</html>
