@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 -->

<!-- About Page 1 Area Start Here -->
    @foreach ($data['lifes'] as $key=> $lifes)
   @if($key % 2 == 0)
    <div class="about-page1-area">
        <div class="container">
            <div class="row about-page1-inner">
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <div class="about-page-content-holder">
                        <div class="content-box">
                            <h2>{{ $lifes->title }}</h2>
                            <p>{!! $lifes->description !!}</p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <div class="about-page-img-holder">
                        <img src="{{ asset('images/canvasLife/' . $lifes->image) }}" class="img-responsive" alt="{{ $lifes->title }}">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- About Page 1 Area End Here -->
    @else
    <!-- About Page 1 Area Start Here -->
    <div class="about-page1-area">
        <div class="container">
            <div class="row about-page1-inner">
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <div class="about-page-img-holder">
                        <img src="{{ asset('images/canvasLife/' . $lifes->image) }}" class="img-responsive" alt="{{ $lifes->title }}">
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <div class="about-page-content-holder">
                        <div class="content-box">
                            <h2>{{ $lifes->title }}</h2>
                            <p>{!! $lifes->description !!}</p>
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
    @endif
    @endforeach
    <!-- About Page 1 Area End Here -->
  
    <!-- Video Area Start Here -->
    <div class="video-area overlay-video bg-common-style" style="background-image: url('frontend/img/banner/1.jpg');">
        <div class="container">
            <div class="video-content">
                <h2 class="video-title">Watch Campus Life Video Tour</h2> 
                <a class="play-btn popup-youtube wow bounceInUp" data-wow-duration="2s" data-wow-delay=".1s" href="{{ $configuration->video2 }}"><i class="fa fa-play" aria-hidden="true"></i></a>
            </div>
        </div>
    </div>
    <!-- Video Area End Here -->
@endsection