kuvia/resources/views/themes/tenant/kuvia-blog/list.blade.php

36 lines
1.5 KiB
PHP
Raw Normal View History

2021-01-12 22:14:38 +00:00
@extends('layout/template')
2021-01-30 19:56:24 +00:00
@section('title'){{ $tenant->name }}@endsection
2021-01-30 19:54:56 +00:00
2021-01-12 22:14:38 +00:00
@section('content')
2021-01-17 14:32:25 +00:00
<div class="row" style="margin-top: 20px;">
2021-01-12 22:14:38 +00:00
<div class="col-md-12">
@foreach($galleries as $gallery)
2021-01-12 22:16:05 +00:00
<div class="row" style="margin-bottom: 20px;border-bottom: 1px solid grey;padding-bottom: 20px;">
2021-01-12 22:14:38 +00:00
<div class="col-md-4">
<h3>{{ $gallery->name }}</h3>
2021-01-17 17:45:49 +00:00
<img class="d-lg-none" src="/{{$tenant->url}}/{{$gallery->url}}/{{$gallery->main_image}}/file?size=big" style="width: 100%;">
2021-01-12 22:23:46 +00:00
<p>published {{ $gallery->gallery_create_time }}</p>
2021-01-17 16:30:16 +00:00
<p>{!! $gallery->html !!}</p>
2021-01-12 22:14:38 +00:00
<a href="/{{ $tenant->url }}/{{ $gallery->url }}/" class="btn btn-outline-primary">More</a>
</div>
2021-01-17 17:45:49 +00:00
<div class="col-md-8 d-none d-lg-block" style="text-align: center;">
2021-01-12 22:18:48 +00:00
<img src="/{{$tenant->url}}/{{$gallery->url}}/{{$gallery->main_image}}/file?size=big" style="width: 100%;">
2021-01-12 22:14:38 +00:00
</div>
</div>
@endforeach
</div>
</div>
@endsection
@section('js')
<link rel="stylesheet" href="/css/justifiedGallery.css" />
<script src="/js/jquery.justifiedGallery.js"></script>
<script>
$("#mygallery").justifiedGallery({
rowHeight: 250,
});
</script>
@endsection