2016-10-06 16:21:27 +01:00
|
|
|
@extends('themes.base.layout')
|
|
|
|
@section('title', $album->name)
|
|
|
|
|
2017-04-17 21:53:47 +01:00
|
|
|
@php ($hasChildren = $album->children()->count() > 0)
|
|
|
|
|
2016-10-06 16:21:27 +01:00
|
|
|
@section('content')
|
2017-04-17 21:31:45 +01:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<ol class="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'))
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-04-17 21:53:47 +01:00
|
|
|
<div class="container-fluid album-container">
|
2016-10-06 16:21:27 +01:00
|
|
|
<div class="row">
|
2017-04-17 21:53:47 +01:00
|
|
|
<div class="{{ $hasChildren ? 'col-md-8' : 'col-md-10 offset-md-1' }} text-center">
|
2016-10-06 16:21:27 +01:00
|
|
|
<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-03-22 21:45:58 +00:00
|
|
|
<img src="{{ asset('themes/base/images/smartphone-photo.jpg') }}" class="img-fluid rounded" style="display: inline;" />
|
2016-10-06 16:21:27 +01:00
|
|
|
</div>
|
2017-04-17 21:53:47 +01:00
|
|
|
|
|
|
|
@if ($hasChildren)
|
|
|
|
<div class="col-md-2 offset-md-1">
|
|
|
|
@foreach ($album->children as $childAlbum)
|
|
|
|
<div class="card mb-3">
|
|
|
|
<img class="card-img-top" src="{{ $childAlbum->thumbnailUrl('preview') }}" style="height: 150px;"/>
|
|
|
|
<div class="card-block">
|
|
|
|
<h4 class="card-title"><a href="{{ $childAlbum->url() }}">{{ $childAlbum->name }}</a></h4>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
<small class="text-muted"><i class="fa fa-fw fa-photo"></i> {{ $childAlbum->photos_count }} photos</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
2016-10-06 16:21:27 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|