@extends('layouts.frontend')
@section('title',$data['event']->title)
@section('content')
     <!-- Inner Page Banner Area Start Here -->
     <div class="inner-page-banner-area" style="background-image: url({{ asset('frontend/img/banner/5.jpg') }});">
        <div class="container">
            <div class="pagination-area">
                <h1>{{ $data['event']->title }}</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/event/' . $data['event']->image) }}" alt="event" class="img-responsive"></a>
                        </div>
                        <h2 class="title-default-left-bold-lowhight"><a href="#">{{ $data['event']->title }}</a></h2>
                        <ul class="event-info-inline title-bar-sm-high">
                            <li><i class="fa fa-calendar" aria-hidden="true"></i>{{$data['event']->date }}</li>
                            <li><i class="fa fa-map-marker" aria-hidden="true"></i>{{ $data['event']->location }}</li>
                        </ul>
                        <p>{!! $data['event']->description !!}
                    </div> 
                    <!-- Gallery Area 1 Start Here --> 
            <div class="row gallery-wrapper">
                <h3 class="sidebar-title">Event Gallery</h3>
                @foreach ($data['event']->images as $image ) 
                <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                    <div class="gallery-box">
                        <img src="{{ asset('images/event/' . $image->event_image) }}" class="img-responsive" alt="gallery">
                        <div class="gallery-content">
                            <a href="{{ asset('images/event/' . $image->event_image) }}" class="zoom"><i class="fa fa-link" aria-hidden="true"></i></a>
                        </div>
                    </div>
                </div>
                @endforeach
            </div> 
    <!-- 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>
                                <hr/>
                                <br/><br/><br/>
                                <h3 class="sidebar-title">Events Video</h3>
                                <iframe width="99%" height="205" src="{{ $data['event']->video }}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                            </div>
                        </div> 
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- News Page Area End Here -->
@endsection