@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>
      <!-- News Details Page Area Start Here -->
   <div class="event-details-page-area">
        <div class="container">
            <div class="row">
               <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
                    <div class="event-details-inner">
                        <div class="event-details-img"> 
                            <a href="#"><img src="{{ asset('images/hour/' . $data['hour']->image) }}" alt="{{ $data['hour']->title }}" class="img-responsive"></a>
                        </div>
                        <h2 class="title-default-left-bold-lowhight"><a href="#">{{ $data['hour']->title }}</a></h2>
                        
                        <p>{!! $data['hour']->description !!}</p>
                    </div> 
                    <!-- Gallery Area 1 Start Here -->  
                    <!-- Gallery Area 1 End Here -->
                </div>
                <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                    <div class="sidebar"> 
                       <div class="sidebar-box">
                           <div class="sidebar-box-inner">
                               <h3 class="sidebar-title">Latest College Events</h3>
                               <div class="sidebar-latest-research-area">
                                   <ul>
                                       @foreach ($data['events'] as $event )
                                       <li>
                                           <div class="latest-research-img">
                                               <a href="{{ route('frontend.eventDetails',$event->slug) }}"><img src="{{ asset('images/event/' .$event->image) }}" class="img-responsive" alt="skilled"></a>
                                           </div>
                                           <div class="latest-research-content">
                                               <h4>{{ date_format($event->created_at,'d F Y') }}</h4>
                                               <p>{{ $event->title }}</p>
                                           </div>
                                       </li>
                                       @endforeach
                                   </ul>
                               </div>

                           </div>
                       </div> 
                   </div>
               </div>
            </div>
        </div>
    </div>
    <!-- News Page Area End Here -->
@endsection