Add yesterday images to gallery
This commit is contained in:
@@ -186,9 +186,26 @@
|
||||
<div v-if="host == 'strecha'">
|
||||
<div class="h4 mt-3 bg-info">Aktuálny obrázok z kamery</div>
|
||||
<img class="img-fluid" src="{{ url('upload/images/camera.jpg') }}" alt="" title="" />
|
||||
<div class="h4 mt-3 bg-info">Galeria za aktualny deň</div>
|
||||
<vue-picture-swipe :items="{{ json_encode($items) }}"></vue-picture-swipe>
|
||||
</b-tabs>
|
||||
<div class="h4 mt-3 bg-info">Galeria</div>
|
||||
@if (count($items) > 0)
|
||||
<b-tabs card lazy>
|
||||
@if (count($items[0]) > 0)
|
||||
<b-tab title="Dnešok">
|
||||
<vue-picture-swipe :items="{{ json_encode($items[0]) }}"></vue-picture-swipe>
|
||||
</b-tab>
|
||||
@endif
|
||||
@if (isset($items[-1]) && count($items[-1]) > 0)
|
||||
<b-tab title="Včerajšok">
|
||||
<vue-picture-swipe :items="{{ json_encode($items[-1]) }}"></vue-picture-swipe>
|
||||
</b-tab>
|
||||
@endif
|
||||
@if (isset($items[-2]) && count($items[-2]) > 0)
|
||||
<b-tab title="Predvčerajšok">
|
||||
<vue-picture-swipe :items="{{ json_encode($items[-2]) }}"></vue-picture-swipe>
|
||||
</b-tab>
|
||||
@endif
|
||||
</b-tabs>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user