@extends('layouts/sidebar')

@section('title') 
  @if($blog->title) {{$blog->title}} | Live blog @endif
@endsection

@section('controls')
	<p>
	<a href="{{Request::url()}}" class="action_button"><span class="fa fa-undo" class="action_button"></span><span>Verversen (nieuwste)</span></a>

	@if($pagina > 1)
		<a href="{{Request::url()}}?pagina={{$pagina - 1}}" class="action_button"><span class="fa fa-arrow-left"></span><span>Terug (nieuwer)</span></a>
	@else
		<a href="#" class="action_button disabled"><span class="fa fa-arrow-left"></span><span>Terug (nieuwere berichten)</span></a>
	@endif

	@if($hasNext)
		<a href="{{Request::url()}}?pagina={{$pagina + 1}}" class="action_button"><span class="fa fa-arrow-right"></span><span>Verder (ouder)</span></a>
	@else
		<a href="#" class="action_button disabled"><span class="fa fa-arrow-right"></span><span>Verder (ouder)</span></a>
	@endif
	</p>
@endsection 

@section('content')

	<h3 class="excerpt">
          {!!$blog->description!!}
            <span style="font-size: 75%; margin: 5px; text-align: center">
          @if($blog->is_active)
              <span style="padding: 3px; color: white; background-color: #BD0013; border-radius: 5px;" title="Dit blog wordt momenteel actief bijgewerkt.">
                Nu live!
              </span>
          @else
              <span style="padding: 3px; background-color: #BDBDBD; border-radius: 5px;" title="Dit blog is gesloten en wordt hier getoond als archief.">
                Archief
              </span>
          @endif
            </span>
        </h3>

	@yield('controls')

	<div id="items">
		@include('partial/blogitems', ['items' => $items])
	</div>

	@yield('controls')
        <p class="center">(Pagina {{$pagina}})</p>

@endsection

