forked from eatvio/eatvio-infra
25 lines
890 B
PHP
25 lines
890 B
PHP
<div class="d-flex w-md-50 ms-lg-4 align-items-center meal-photos-container" x-data>
|
|
<input type="file" wire:model.live="tmpMealPhotos" accept="image/*" x-ref="MealPhotos" name="mealPhotos" class="hidden" multiple />
|
|
|
|
@php $previews = collect($tmpMealPhotos)->take(3); @endphp
|
|
|
|
@foreach($previews as $tmpPhoto)
|
|
<img width="100" height="67" src="{{ $tmpPhoto->temporaryUrl() }}">
|
|
@endforeach
|
|
|
|
@if(count($curMealPhotos) > 0)
|
|
@foreach($curMealPhotos as $photo)
|
|
<img width="100" height="67" src="{{ $photo->path }}" />
|
|
@endforeach
|
|
@else
|
|
<img src="/img/blanc_pic.svg" >
|
|
@endif
|
|
{{-- @php dump($tmpMealPhotos) @endphp --}}
|
|
@if(count($curMealPhotos) < 3 )
|
|
<button x-on:click.prevent="$refs.MealPhotos.click()" type="button">
|
|
<img src="/img/add_plus.svg" />
|
|
</button>
|
|
@endif
|
|
</div>
|
|
|