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">
|
2017-09-01 14:52:06 +01:00
|
|
|
<a href="{{ $album->url() }}"><img class="card-img-top" src="{{ $album->thumbnailUrl('preview') }}"/></a>
|
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>
|
2017-09-04 21:05:35 +01:00
|
|
|
<p class="card-text">{!! nl2br(e($album->description)) !!}</p>
|
2017-09-01 14:52:06 +01:00
|
|
|
|
|
|
|
@can('edit', $album)
|
|
|
|
<a href="{{ route('albums.show', ['id' => $album->id]) }}" class="card-link">@lang('gallery.manage_album_link')</a>
|
|
|
|
@endcan
|
2017-04-18 17:25:27 +01:00
|
|
|
</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
|