@extends('user.master')
@section('content')
<!-- Page Content Start -->
<div class="col-md-12">
    <!-- Page  -->
    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>
    <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10">
            <div class="col-md-9">
                <div class="col-md-12 animated zoomIn bg-default poll-content-share" id="poll-content">
                    @if(!empty($page_data))
<!--        <h5><i>Post On : {{Util::getdate($page_data->created_at,'y-M-d h:i a')}}</i></h5>-->
                    <div class="clearfix">&nbsp;</div>
                    <center><img src="{{$page_data->featured_image}}" class="img-responsive"></center>
                    <div class="clearfix">&nbsp;</div>
                    <i><h1 class="vr-text-color">{{$page_data->page_name}}</h1></i>
                    <div class="clearfix">&nbsp;</div>
                    {{$page_data->content}}
                    <h3>Comments  </h3>
                    <div class="fb-share-button" data-href="{{URL::full()}}" data-layout="box_count"></div>
                     <div class="clearfix">&nbsp;</div>
                    <div class="fb-comments" data-href="{{URL::full()}}" data-numposts="5"></div>
                    @else
                    <h3> No page data found ! </h3>
                    @endif
                    <div class="clearfix">&nbsp;</div>
                </div>
            </div>
            <div class="col-md-3 bg-default">
                <b>Ads: </b>
                <p></p>
                <a href="{{$settings->footer_image_link}}">
                    <img class="img-responsive portfolio-item" src="{{asset('public/images')}}/{{$settings->footer_image}}" alt="Quiz Viral marketing ">
                </a>
                <div class="clearfix">&nbsp;</div>
                <div class="clearfix">&nbsp;</div>
                <h3> Quick Link  </h3>
                <div class="list-group">
                    <a href="{{url()}}" class="list-group-item">
                        <i class="fa fa-home"></i>  Home
                    </a>
                    <a href="{{url()}}/polls" class="list-group-item">
                        <i class="fa fa-question-circle"></i> Polls
                    </a>
                    @if(!empty($menu))
                    <span href="#" class="list-group-item">
                        <i class="fa fa-wordpress"></i> Articles
                    </span>
                    @foreach($menu as $m)
                    <a href="{{$m->slug}}" class="list-group-item"><i class="fa fa-pencil"></i>  {{$m->page_name}}</a>
                    @endforeach
                    @endif
                </div>

            </div>
        </div>
        <div class="col-md-1"></div>
    </div>
    <div class="clearfix">&nbsp;</div>
</div>
<!-- // Page Content Start -->

@stop
