2021-01-12 14:49:45 +00:00
|
|
|
@extends('layout/template')
|
|
|
|
|
|
|
|
@section('content')
|
2021-01-17 14:32:25 +00:00
|
|
|
<div class="row" style="margin-top: 20px;">
|
|
|
|
<div class="col-md-12" style="margin-bottom: 10px;">
|
2021-01-28 11:31:42 +00:00
|
|
|
<a href="/g/new" class="btn btn-outline-primary" style="float: right;">New Gallery</a>
|
2021-01-17 14:32:25 +00:00
|
|
|
<h1>Gallery</h1>
|
|
|
|
</div>
|
2021-01-12 14:49:45 +00:00
|
|
|
<div style="clear: both; margin-bottom: 10px;"></div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
2021-01-28 10:59:19 +00:00
|
|
|
<th class="d-none d-lg-table-cell">#</th>
|
2021-01-12 14:49:45 +00:00
|
|
|
<th>Preview</th>
|
2021-01-28 10:59:19 +00:00
|
|
|
<th class="d-none d-sm-table-cell">Name</th>
|
|
|
|
<th class="d-none d-lg-table-cell">Create Date</th>
|
2021-01-12 14:49:45 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
@foreach($galleries as $gallery)
|
|
|
|
<tr>
|
2021-01-28 10:59:19 +00:00
|
|
|
<td class="d-none d-lg-table-cell">{{ $gallery->id }}</td>
|
2021-01-12 14:49:45 +00:00
|
|
|
<td style="padding-top:5px;padding-bottom: 5px;">
|
|
|
|
@if($gallery->main_image == null)
|
|
|
|
<img src="/images/lens-3114729_1920.jpg" height="87px;">
|
|
|
|
@else
|
|
|
|
<img src="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $gallery->main_image }}/file?size=small" height="87px;">
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</td>
|
2021-01-28 10:59:19 +00:00
|
|
|
<td class="d-none d-sm-table-cell">{{ $gallery->name }}</td>
|
|
|
|
<td class="d-none d-lg-table-cell">{{ $gallery->gallery_create_time }}</td>
|
2021-01-12 14:49:45 +00:00
|
|
|
<td>
|
2021-01-28 11:31:42 +00:00
|
|
|
<div class="dropdown" style="float: right;">
|
2021-01-12 14:49:45 +00:00
|
|
|
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
Actions
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
2021-01-12 16:50:08 +00:00
|
|
|
<a class="dropdown-item" href="/g/{{$gallery->url}}">Bilder</a>
|
2021-01-17 14:32:25 +00:00
|
|
|
<a class="dropdown-item" href="/g/{{$gallery->url}}/edit">Bearbeiten</a>
|
2021-01-28 11:31:42 +00:00
|
|
|
<div role="separator" class="dropdown-divider"></div>
|
2021-01-27 00:11:16 +00:00
|
|
|
<a class="dropdown-item" target="_blank" href="/{{ $tenant->url }}/{{$gallery->url}}">Anschauen</a>
|
2021-01-12 14:49:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-01-17 14:32:25 +00:00
|
|
|
</div>
|
2021-01-12 16:50:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-12 14:49:45 +00:00
|
|
|
@endsection
|