@php $images = $this->getRecord()->images()->with('uploader')->orderBy('position')->orderBy('id')->paginate(10, ['*'], 'warrantyPhotos'); @endphp
@if ($this->canEditPhotos()){{ $this->uploadPhotoAction() }}@endif @forelse ($images as $image) {{ \App\Domain\Content\Content::value($image, 'description') ?? __('warranties.fields.file') }} @if (\App\Domain\Content\Content::value($image, 'description'))

{{ \App\Domain\Content\Content::value($image, 'description') }}

@endif

{{ $image->uploader?->name }} ยท {{ $image->created_at->format('d/m/Y H:i') }}

@if ($this->canEditPhotos())
{{ $this->editPhotoAction(['image' => $image->id]) }} {{ $this->removePhotoAction(['image' => $image->id]) }} {{ $this->movePhotoAction(['image' => $image->id, 'direction' => -1])->label(__('warranties.move_up')) }} {{ $this->movePhotoAction(['image' => $image->id, 'direction' => 1])->label(__('warranties.move_down')) }}
@endif
@empty

{{ __('warranties.no_photos') }}

@endforelse @if ($images->hasPages())@endif