2016-09-02 10:42:05 +01:00
|
|
|
@extends('themes.base.layout')
|
2016-09-03 22:13:05 +01:00
|
|
|
@section('title', 'Welcome')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
@foreach ($albums as $album)
|
2016-09-09 15:06:34 +01:00
|
|
|
<div class="col-xs-6 col-sm-4">
|
|
|
|
<div class="panel panel-default">
|
2016-09-03 22:13:05 +01:00
|
|
|
<div class="panel-heading"><a href="{{ $album->url() }}">{{ $album->name }}</a></div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p class="text-center">
|
2016-09-05 14:06:41 +01:00
|
|
|
@php($albumUrl = $album->thumbnailUrl('preview'))
|
|
|
|
@if (strlen($albumUrl) > 0)
|
2016-09-07 21:44:28 +01:00
|
|
|
<a href="{{ $album->url() }}"><img class="img-responsive" src="{{ $albumUrl }}"/></a>
|
2016-09-05 14:06:41 +01:00
|
|
|
@endif
|
2016-09-03 22:13:05 +01:00
|
|
|
</p>
|
|
|
|
<p>{{ $album->description }}</p>
|
|
|
|
</div>
|
2016-09-05 14:06:41 +01:00
|
|
|
<div class="panel-footer">
|
|
|
|
<span class="text-left"><b>{{ $album->photos_count }}</b> photos</span>
|
|
|
|
<span class="pull-right"><a href="{{ $album->url() }}" class="btn btn-sm btn-default">Open album</a></span>
|
|
|
|
<span class="clearfix"></span>
|
2016-09-03 22:13:05 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2016-09-07 21:44:28 +01:00
|
|
|
|
|
|
|
<div class="row" style="margin-top: 15px;">
|
|
|
|
<div class="col-xs-12 text-center">
|
|
|
|
{{ $albums->links() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-03 22:13:05 +01:00
|
|
|
</div>
|
|
|
|
@endsection
|