2017-09-10 21:12:57 +01:00
|
|
|
@extends(Theme::viewName('layout'))
|
2016-09-09 15:06:34 +01:00
|
|
|
@section('title', $album->name)
|
2016-09-04 21:59:32 +01:00
|
|
|
|
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
|
|
|
|
|
2017-04-11 18:31:56 +01:00
|
|
|
@section('content')
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="container album-container">
|
2016-09-09 15:06:34 +01:00
|
|
|
<div class="row">
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="col">
|
|
|
|
<div class="pull-right">
|
|
|
|
@can('edit', $album)
|
|
|
|
<div class="mb-3">
|
2017-09-29 19:40:52 +01:00
|
|
|
<a class="btn btn-secondary" href="{{ route('albums.show', ['id' => $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>
|
2017-09-01 14:52:06 +01:00
|
|
|
@endcan
|
2017-04-18 17:25:27 +01:00
|
|
|
|
2017-09-01 14:52:06 +01:00
|
|
|
@include(\App\Facade\Theme::viewName('partials.album_view_selector'))
|
2017-04-18 17:25:27 +01:00
|
|
|
</div>
|
2016-09-09 15:06:34 +01:00
|
|
|
|
2017-09-01 14:52:06 +01:00
|
|
|
<h1 class="page-title">{{ $album->name }}</h1>
|
2017-09-04 21:05:35 +01:00
|
|
|
<p>{!! nl2br(e($album->description)) !!}</p>
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="clearfix"><!-- --></div>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-18 17:25:27 +01:00
|
|
|
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="row">
|
|
|
|
@foreach ($photos as $photo)
|
|
|
|
<div class="col-sm-6 col-md-4 photo mb-3">
|
|
|
|
<div class="card">
|
2017-09-17 12:27:59 +01:00
|
|
|
<a href="{{ $photo->url() }}"><img src="{{ $photo->thumbnailUrl('preview') }}" alt="" class="card-img-top"/></a>
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="card-title"><a href="{{ $photo->url() }}">{{ $photo->name }}</a></h4>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
2017-09-04 20:16:36 +01:00
|
|
|
<small class="text-muted"><i class="fa fa-fw fa-calendar"></i> {{ date(UserConfig::get('date_format'), strtotime(!is_null($photo->taken_at) ? $photo->taken_at : $photo->created_at)) }}</small>
|
2016-09-09 15:06:34 +01:00
|
|
|
</div>
|
2017-04-18 17:25:27 +01:00
|
|
|
</div>
|
2016-09-04 21:59:32 +01:00
|
|
|
</div>
|
2017-09-01 14:52:06 +01:00
|
|
|
@endforeach
|
2018-08-07 09:03:47 +01:00
|
|
|
</div>
|
2016-09-07 21:44:28 +01:00
|
|
|
|
2018-08-07 09:03:47 +01:00
|
|
|
<div class="row" style="margin-top: 15px;">
|
|
|
|
<div class="col text-center">
|
|
|
|
{{ $photos->links() }}
|
2017-09-01 14:52:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-18 17:25:27 +01:00
|
|
|
|
2017-09-29 13:57:45 +01:00
|
|
|
@if (count($child_albums) > 0)
|
2017-09-01 14:52:06 +01:00
|
|
|
<div class="row">
|
2017-09-29 13:57:45 +01:00
|
|
|
<div class="col text-center">
|
|
|
|
<h2 style="margin-top: 60px;"><small class="text-muted">@lang('gallery.other_albums_heading', ['album_name' => $album->name])</small></h2>
|
|
|
|
<p class="mb-4">@lang('gallery.other_albums_description')</p>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
@foreach ($child_albums as $childAlbum)
|
2018-08-11 09:30:48 +01:00
|
|
|
@include(Theme::viewName('partials.gallery_child_album'))
|
2017-09-29 13:57:45 +01:00
|
|
|
@endforeach
|
2017-04-18 17:25:27 +01:00
|
|
|
</div>
|
2017-09-29 13:57:45 +01:00
|
|
|
</div>
|
2016-09-07 21:44:28 +01:00
|
|
|
</div>
|
2017-09-01 14:52:06 +01:00
|
|
|
@endif
|
2016-09-04 21:59:32 +01:00
|
|
|
</div>
|
|
|
|
@endsection
|