@extends('user.master')
@section('content')
<!-- Blog 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">
                @if(!empty($blog_data))
                @foreach($blog_data as $b)
                <div class="col-md-12 animated slideInDown bg-default poll-content-share" id="poll-content">
                    <div class="blog bg-warning">
                        <i><h3><a  class="vr-text-color" href="/blog/{{$b->slug}}">{{$b->page_name}}</a></h3></i>
                        <h5><i>Posted On : {{Util::getdate($b->created_at,'y-M-d h:i a')}}</i></h5>
                        <div class="clearfix">&nbsp;</div>
                        <center><img src="{{$b->featured_image}}" class="img-responsive"></center>
                        <div class="clearfix">&nbsp;</div>
                        <div class="clearfix">&nbsp;</div>
                        {{Util::excerptText($b->content,'/blog/'.$b->slug)}}
                    </div>
                </div>
                <div class="clearfix">&nbsp;</div>
                @endforeach
                <center>{{$blog_data->links()}}</center>
                @else
                <h3> No page data found ! </h3>
                @endif
                <div class="clearfix">&nbsp;</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>

    <!-- Blog Load -->

    <div class="clearfix">&nbsp;</div>
</div>
<!--// Blog Content Start -->

@stop
