2017-09-10 21:12:57 +01:00
|
|
|
@extends(Theme::viewName('layout'))
|
2016-10-06 16:21:27 +01:00
|
|
|
@section('title', $album->name)
|
|
|
|
|
2017-09-01 14:52:06 +01:00
|
|
|
@section('breadcrumb')
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
|
|
@include(Theme::viewName('partials.album_breadcrumb'))
|
|
|
|
@endsection
|
|
|
|
|
2016-10-06 16:21:27 +01:00
|
|
|
@section('content')
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="container album-container">
|
|
|
|
@can('edit', $album)
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<div class="pull-right">
|
2020-04-18 18:25:43 +01:00
|
|
|
<a class="btn btn-secondary" href="{{ route('albums.show', ['album' => $album->id]) }}"><i class="fa fa-fw fa-eye"></i> @lang('gallery.manage_album_link_2')</a>
|
2017-04-18 17:25:27 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-01 14:52:06 +01:00
|
|
|
</div>
|
|
|
|
@endcan
|
2016-10-06 16:21:27 +01:00
|
|
|
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col text-center">
|
2017-09-29 13:57:45 +01:00
|
|
|
@if (count($child_albums) == 0)
|
|
|
|
<h1>@lang('gallery.album_no_results_heading')</h1>
|
|
|
|
<p style="line-height: 1.6em;">@lang('gallery.album_no_results_text', ['admin_link' => sprintf('<a href="%s">%s</a>', route('admin'), trans('admin.title'))])</p>
|
|
|
|
<p style="margin-bottom: 30px; line-height: 1.6em;">@lang('gallery.album_no_results_text_2')</p>
|
2017-04-18 20:07:03 +01:00
|
|
|
|
2017-09-29 13:57:45 +01:00
|
|
|
<img src="{{ asset('themes/base/images/smartphone-photo.jpg') }}" class="img-fluid rounded" style="display: inline;" />
|
|
|
|
@else
|
2018-08-07 09:03:47 +01:00
|
|
|
<h2 class="mt-4"><small class="text-muted">@lang('gallery.other_albums_heading', ['album_name' => $album->name])</small></h2>
|
2017-09-29 13:57:45 +01:00
|
|
|
<p class="mb-4">@lang('gallery.other_albums_description_empty', ['album_name' => $album->name])</p>
|
2017-04-18 17:25:27 +01:00
|
|
|
|
2017-04-18 20:07:03 +01:00
|
|
|
<div class="row">
|
2017-09-29 13:57:45 +01:00
|
|
|
@foreach ($child_albums as $childAlbum)
|
2018-08-11 09:30:48 +01:00
|
|
|
@include(Theme::viewName('partials.gallery_child_album'))
|
2017-04-18 20:07:03 +01:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-04-18 17:25:27 +01:00
|
|
|
</div>
|
2016-10-06 16:21:27 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|