54 lines
2.4 KiB
PHP
54 lines
2.4 KiB
PHP
@extends('layout/template')
|
|
|
|
@section('content')
|
|
<div class="row" style="margin-top: 20px;">
|
|
<div class="col-md-12" style="margin-bottom: 10px;">
|
|
<a href="/g/new" class="btn btn-outline-success" style="float: right;">New Gallery</a>
|
|
<h1>Gallery</h1>
|
|
</div>
|
|
<div style="clear: both; margin-bottom: 10px;"></div>
|
|
<div class="col-md-12">
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Preview</th>
|
|
<th>Name</th>
|
|
<th>Create Date</th>
|
|
<th></th>
|
|
</tr>
|
|
@foreach($galleries as $gallery)
|
|
<tr>
|
|
<td>{{ $gallery->id }}</td>
|
|
<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>
|
|
<td>{{ $gallery->name }}</td>
|
|
<td>{{ $gallery->gallery_create_time }}</td>
|
|
<td>
|
|
<div class="dropdown">
|
|
<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">
|
|
<a class="dropdown-item" href="/g/{{$gallery->url}}/upload">Upload Images</a>
|
|
<a class="dropdown-item" href="/g/{{$gallery->url}}">Bilder</a>
|
|
<a class="dropdown-item" href="/g/{{$gallery->url}}/edit">Bearbeiten</a>
|
|
<a class="dropdown-item" target="_blank" href="/{{ $tenant->url }}/{{$gallery->url}}">Anschauen</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@endsection
|