@php $i=1; if($testimonial->currentPage()>1){ $page=$testimonial->currentPage()-1; $i=$page*$testimonial->perPage(); $i++; } @endphp @foreach($testimonial as $key => $testimonial_res) @php $i++; @endphp @endforeach
Id Name Image Status Homepage Status Display Order Actions
{{ $i }} {{ $testimonial_res->name }} {{-- onclick="openCropper(this)" --}} @php foreach($testimonial_res->galleries($categoryId)->get() as $gallery){ if (Storage::disk('public')->exists('uploads/gallery/' . $gallery->filename)) { @endphp @if(!empty($gallery->filename)) filename")}}" class="img-fluid" data-image="{{ asset("storage/uploads/gallery/$gallery->filename")}}" data-name="{{ $gallery->filename }}" style="max-width:80px" onclick="openCropper(this)"> @else avatar.png @endif @php } } @endphp
{{ $testimonial->links('vendor.pagination.custom') }}