kuvia/resources/views/themes/tenant/default/list.blade.php
2021-01-12 22:46:12 +01:00

25 lines
773 B
PHP

@extends('layout/template')
@section('content')
<h1>Galleries</h1>
<div class="row">
@foreach($galleries as $gallery)
<div class="col-md-4" style="margin-bottom: 20px;">
<a href="/{{$tenant->url}}/{{$gallery->url}}">
<div class="card">
<div class="card-header">
{{ $gallery->name }}
</div>
<div class="card-body">
<img class="card-img-top" src="/{{$tenant->url}}/{{$gallery->url}}/{{$gallery->main_image}}/file" style="max-height: 400px; width: auto;max-width: 100%;" alt="Card image cap">
<p class="card-text">from {{ $gallery->gallery_create_time }}<br>{{ $gallery->description }}</p>
</div>
</div>
</a>
</div>
@endforeach
</div>
@endsection
@section('js')
@endsection