2017-09-10 21:12:57 +01:00
|
|
|
@extends(Theme::viewName('layout'))
|
2016-09-11 07:19:11 +01:00
|
|
|
@section('title', $photo->name)
|
2016-09-05 14:27:20 +01:00
|
|
|
|
2016-09-05 16:59:42 +01:00
|
|
|
@section('breadcrumb')
|
2017-09-10 07:27:56 +01:00
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
|
|
@foreach ($album->albumParentTree() as $parentAlbum)
|
2017-09-12 20:54:29 +01:00
|
|
|
<li class="breadcrumb-item"><a href="{{ $parentAlbum->url() }}">{{ $parentAlbum->name }}</a></li>
|
2017-09-10 07:27:56 +01:00
|
|
|
@endforeach
|
2017-04-15 08:36:17 +01:00
|
|
|
<li class="breadcrumb-item active">{{ $photo->name }}</li>
|
2016-09-05 16:59:42 +01:00
|
|
|
@endsection
|
|
|
|
|
2016-09-05 14:27:20 +01:00
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-04-15 08:36:17 +01:00
|
|
|
<div class="col">
|
2016-09-05 14:27:20 +01:00
|
|
|
<h1>{{ $photo->name }}</h1>
|
2016-09-07 21:44:28 +01:00
|
|
|
@if (strlen($photo->description) > 0)
|
|
|
|
<p>{{ $photo->description }}</p>
|
|
|
|
@endif
|
2016-09-05 14:27:20 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2017-04-15 08:36:17 +01:00
|
|
|
<div class="col-sm-8 content-body">
|
2016-09-11 07:19:11 +01:00
|
|
|
@if ($is_original_allowed)
|
|
|
|
<a href="{{ $photo->thumbnailUrl() }}">
|
|
|
|
@endif
|
2017-09-10 11:24:44 +01:00
|
|
|
<img src="{{ $photo->thumbnailUrl('fullsize') }}" alt="" class="img-thumbnail mb-4"/>
|
2016-09-11 07:19:11 +01:00
|
|
|
@if ($is_original_allowed)
|
|
|
|
</a>
|
|
|
|
@endif
|
2017-09-10 11:24:44 +01:00
|
|
|
|
2017-09-12 20:54:29 +01:00
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-6">
|
|
|
|
@if (!is_null($previous_photo))
|
|
|
|
<a href="{{ $previous_photo->url() }}" class="btn btn-secondary">@lang('gallery.previous_button')</a>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="col-6 text-right">
|
|
|
|
@if (!is_null($next_photo))
|
|
|
|
<a href="{{ $next_photo->url() }}" class="btn btn-secondary">@lang('gallery.next_button')</a>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-10 11:24:44 +01:00
|
|
|
@if ($photo->labels()->count() > 0)
|
|
|
|
<h4>@lang('gallery.labels')</h4>
|
|
|
|
<ul class="nav nav-pills mb-4">
|
|
|
|
@foreach ($photo->labels()->orderBy('name')->get() as $label)
|
|
|
|
<li class="nav-item">
|
2017-09-10 13:21:45 +01:00
|
|
|
<a class="nav-link" href="{{ $label->url() }}">
|
2017-09-10 11:24:44 +01:00
|
|
|
<i class="fa fa-tag"></i> {{ $label->name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endif
|
2016-09-05 14:27:20 +01:00
|
|
|
</div>
|
|
|
|
|
2017-04-15 08:36:17 +01:00
|
|
|
<div class="col-sm-4">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">Information about this photo:</div>
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="card-body" style="padding: 0;">
|
2017-04-15 08:36:17 +01:00
|
|
|
<table class="table table-striped photo-metadata mb-0">
|
2016-09-11 07:19:11 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="metadata_name">File name:</td>
|
|
|
|
<td class="metadata_value">{{ $photo->file_name }}</td>
|
|
|
|
</tr>
|
2016-09-05 14:27:20 +01:00
|
|
|
|
2016-09-11 07:19:11 +01:00
|
|
|
@if (strlen($photo->taken_at) > 0)
|
|
|
|
<tr>
|
|
|
|
<td class="metadata_name">Date taken:</td>
|
|
|
|
<td class="metadata_value">{{ date(UserConfig::get('date_format'), strtotime($photo->taken_at)) }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2016-09-05 14:27:20 +01:00
|
|
|
|
2016-09-11 07:19:11 +01:00
|
|
|
@if (strlen($photo->camera_make) > 0)
|
|
|
|
<tr>
|
|
|
|
<td class="metadata_name">Camera make:</td>
|
|
|
|
<td class="metadata_value">{{ $photo->camera_make }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2016-09-05 14:27:20 +01:00
|
|
|
|
2016-09-11 07:19:11 +01:00
|
|
|
@if (strlen($photo->camera_model) > 0)
|
|
|
|
<tr>
|
|
|
|
<td class="metadata_name">Camera model:</td>
|
|
|
|
<td class="metadata_value">{{ $photo->camera_model }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2016-09-05 14:27:20 +01:00
|
|
|
|
2016-09-11 07:19:11 +01:00
|
|
|
@if (strlen($photo->camera_software) > 0)
|
|
|
|
<tr>
|
|
|
|
<td class="metadata_name">Camera software:</td>
|
|
|
|
<td class="metadata_value">{{ $photo->camera_software }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-16 08:26:05 +01:00
|
|
|
|
|
|
|
@if (!empty($photo->raw_exif_data))
|
|
|
|
@can('changeMetadata', $photo)
|
|
|
|
<p><a href="{{ $photo->exifUrl() }}" class="btn btn-primary mt-3"><i class="fa fa-eye fa-fw"></i> @lang('gallery.show_raw_exif_data')</a></p>
|
|
|
|
@endcan
|
|
|
|
@endif
|
2016-09-05 14:27:20 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-10-05 11:49:39 +01:00
|
|
|
|
|
|
|
<div class="row">
|
2017-04-15 08:36:17 +01:00
|
|
|
<div class="col mt-4">
|
2017-09-12 20:54:29 +01:00
|
|
|
<a href="{{ $album->url() }}" class="btn btn-secondary">« @lang('gallery.back_to_album', ['name' => $photo->album->name])</a>
|
2016-10-05 11:49:39 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-05 14:27:20 +01:00
|
|
|
</div>
|
|
|
|
@endsection
|