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')
|
2017-03-22 16:55:39 +00:00
|
|
|
<div class="container-fluid">
|
2017-04-18 17:25:27 +01:00
|
|
|
<div class="row">
|
2017-08-30 22:09:30 +01:00
|
|
|
<div class="col-xl-8 ml-xl-auto mr-xl-auto">
|
2017-04-18 17:25:27 +01:00
|
|
|
@if (count($albums) > 0)
|
|
|
|
<div class="row album-photo-cards">
|
|
|
|
@foreach ($albums as $album)
|
|
|
|
<div class="col-sm-6 col-md-4">
|
|
|
|
<div class="card">
|
|
|
|
<img class="card-img-top" src="{{ $album->thumbnailUrl('preview') }}"/>
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="card-body">
|
2017-04-18 17:25:27 +01:00
|
|
|
<h4 class="card-title"><a href="{{ $album->url() }}">{{ $album->name }}</a></h4>
|
|
|
|
<p class="card-text">{{ $album->description }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
<small class="text-muted"><i class="fa fa-fw fa-photo"></i> {{ $album->photos_count }} photos</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-22 16:55:39 +00:00
|
|
|
</div>
|
2017-04-18 17:25:27 +01:00
|
|
|
@endforeach
|
2016-09-03 22:13:05 +01:00
|
|
|
</div>
|
2016-10-06 16:21:27 +01:00
|
|
|
|
2017-04-18 17:25:27 +01:00
|
|
|
<div class="row" style="margin-top: 15px;">
|
|
|
|
<div class="col text-center">
|
|
|
|
{{ $albums->links() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="text-center">
|
|
|
|
<h1>@lang('gallery.index_no_results_heading')</h1>
|
|
|
|
<p style="margin-bottom: 30px; line-height: 2em;">@lang('gallery.index_no_results_text', ['admin_link' => sprintf('<a href="%s">%s</a>', route('admin'), trans('admin.title'))])</p>
|
2016-09-07 21:44:28 +01:00
|
|
|
|
2017-04-18 17:25:27 +01:00
|
|
|
<img src="{{ asset('themes/base/images/take-a-photo.jpg') }}" class="img-fluid rounded" style="display: inline;" />
|
|
|
|
</div>
|
|
|
|
@endif
|
2016-09-07 21:44:28 +01:00
|
|
|
</div>
|
2017-04-18 17:25:27 +01:00
|
|
|
</div>
|
2016-09-03 22:13:05 +01:00
|
|
|
</div>
|
2017-03-22 16:55:39 +00:00
|
|
|
@endsection
|