2016-09-04 21:59:32 +01:00
|
|
|
@extends('themes.base.layout')
|
2016-09-09 15:06:34 +01:00
|
|
|
@section('title', $album->name)
|
2016-09-04 21:59:32 +01:00
|
|
|
|
2017-04-17 21:53:47 +01:00
|
|
|
@php ($hasChildren = $album->children()->count() > 0)
|
|
|
|
|
2017-04-11 18:31:56 +01:00
|
|
|
@section('content')
|
|
|
|
<div class="container-fluid album-container">
|
2016-09-09 15:06:34 +01:00
|
|
|
<div class="row">
|
2017-04-18 17:25:27 +01:00
|
|
|
<div class="col-xl-8 offset-xl-2">
|
|
|
|
<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>
|
2016-10-05 11:49:39 +01:00
|
|
|
</div>
|
|
|
|
|
2017-04-18 17:25:27 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<div class="pull-right">
|
|
|
|
@include(\App\Facade\Theme::viewName('partials.album_view_selector'))
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1 class="page-title">{{ $album->name }}</h1>
|
|
|
|
<p>{{ $album->description }}</p>
|
|
|
|
<div class="clearfix"><!-- --></div>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-09 15:06:34 +01:00
|
|
|
|
2017-04-17 21:53:47 +01:00
|
|
|
<div class="row">
|
|
|
|
@foreach ($photos as $photo)
|
2017-04-18 17:25:27 +01:00
|
|
|
<div class="col-sm-6 col-md-4 photo mb-3">
|
2017-04-17 21:53:47 +01:00
|
|
|
<div class="card">
|
|
|
|
<img src="{{ $photo->thumbnailUrl('preview') }}" alt="" class="card-img-top"/>
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="card-body">
|
2017-04-17 21:53:47 +01:00
|
|
|
<h4 class="card-title"><a href="{{ $photo->url() }}">{{ $photo->name }}</a></h4>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
<small class="text-muted"><i class="fa fa-fw fa-calendar"></i> {{ date('Y-m-d H:i', strtotime(!is_null($photo->taken_at) ? $photo->taken_at : $photo->created_at)) }}</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-11 18:31:56 +01:00
|
|
|
</div>
|
2017-04-17 21:53:47 +01:00
|
|
|
@endforeach
|
2017-04-18 17:25:27 +01:00
|
|
|
|
|
|
|
<div class="row" style="margin-top: 15px;">
|
|
|
|
<div class="col text-center">
|
|
|
|
{{ $photos->links() }}
|
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>
|
2016-09-07 21:44:28 +01:00
|
|
|
|
2017-04-18 17:25:27 +01:00
|
|
|
@if ($hasChildren)
|
|
|
|
<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 ($album->children as $childAlbum)
|
|
|
|
<div class="col-sm-4 col-md-3" style="max-width: 250px;">
|
|
|
|
<div class="card mb-3">
|
|
|
|
<img class="card-img-top" src="{{ $childAlbum->thumbnailUrl('preview') }}" style="max-height: 120px;"/>
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="card-body">
|
2017-04-18 17:25:27 +01:00
|
|
|
<h5 class="card-title"><a href="{{ $childAlbum->url() }}">{{ $childAlbum->name }}</a></h5>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
<small class="text-muted"><i class="fa fa-fw fa-photo"></i> {{ $childAlbum->photos_count }} photos</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
2016-09-07 21:44:28 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-04 21:59:32 +01:00
|
|
|
</div>
|
|
|
|
@endsection
|