2024-01-19 23:36:30 +00:00
|
|
|
<!-- @todo We are not handling redirect backs yet with updated photos -->
|
2024-01-09 12:28:17 +00:00
|
|
|
<!-- $o=Binary\JpegPhoto::class -->
|
|
|
|
<x-attribute.layout :edit="$edit" :new="false" :o="$o">
|
|
|
|
<table class="table table-borderless p-0 m-0">
|
2024-01-19 23:36:30 +00:00
|
|
|
@foreach (($old ? $o->old_values : $o->values) as $value)
|
2024-01-09 12:28:17 +00:00
|
|
|
<tr>
|
|
|
|
@switch ($x=$f->buffer($value,FILEINFO_MIME_TYPE))
|
|
|
|
@case('image/jpeg')
|
|
|
|
@default
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="{{ $o->name_lc }}[]" value="{{ md5($value) }}">
|
|
|
|
<img class="jpegphoto @if($e=$errors->get($o->name_lc.'.'.$loop->index))is-invalid @endif" src="data:{{ $x }};base64, {{ base64_encode($value) }}" />
|
2023-04-12 13:18:26 +00:00
|
|
|
|
2024-01-09 12:28:17 +00:00
|
|
|
@if ($edit)
|
|
|
|
<br>
|
|
|
|
<!-- @todo TO IMPLEMENT -->
|
|
|
|
<span class="btn btn-sm btn-danger deletable d-none"><i class="fas fa-trash-alt"></i> @lang('Delete')</span>
|
2023-04-12 13:18:26 +00:00
|
|
|
|
2024-01-09 12:28:17 +00:00
|
|
|
<div class="invalid-feedback pb-2">
|
|
|
|
@if($e)
|
|
|
|
{{ join('|',$e) }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
@endswitch
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</x-attribute.layout>
|