@extends('layouts.frontend')
@section('title',$data['action'])
@section('content')
      <!-- Inner Page Banner Area Start Here -->
      <div class="inner-page-banner-area" style="background-image: url('frontend/img/banner/5.jpg');">
        <div class="container">
            <div class="pagination-area">
                <h1>{{ $data['action'] }}</h1>
                
            </div>
        </div>
    </div>
      <!-- Event Page Area Start Here -->
    <div class="event-page-area">
        <div class="container">
            <div class="row">
                <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
                    <div class="row event-inner-wrapper">
                        @foreach ($data['notices']  as $notice)
                        <div class="col-lg-12 col-md-6 col-sm-12 col-xs-6">
                            <div class="single-item">
                                <div class="item-img">
                                    <a href="{{ route('frontend.noticeDetails',$notice->slug) }}"><img src="{{ asset('images/notice/' . $notice->image) }}" alt="{{ $notice->title }}" class="img-responsive"></a>
                                </div>
                                <div class="item-content">
                                    <h3 class="sidebar-title"><a href="{{ route('frontend.noticeDetails',$notice->slug) }}">{{ $notice->title }}</a></h3>
                                    <p>Bimply dummy text of the printing and typesetting istryrem Ipsum has been the industry's standard dummy text ever when an unknown printer.</p>
                                    <ul class="event-info-block">
                                        <li><i class="fa fa-calendar" aria-hidden="true"></i>{{ date_format($notice->created_at,'d F Y') }}</li>
                                        <li><i class="fa fa-map-marker" aria-hidden="true"></i>{{ $notice->location }}</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        @endforeach
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="text-align: center">
                            {{ $data['notices']->links() }}
                            {{-- <ul class="pagination-center">
                                <li class="active"><a href="event.php">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                            </ul> --}}
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                   @include('layouts.sidebar')
                </div>
            </div>
        </div>
    </div>
    <!-- Event Page Area End Here -->
         
@endsection