@php $i=1; if($specialty->currentPage()>1){ $page=$specialty->currentPage()-1; $i=$page*$specialty->perPage(); $i++; } @endphp @foreach($specialty as $key => $specialty_res) @php $i++; @endphp @endforeach
Id Name Image Status Display Order Actions
{{ $i }} {{ $specialty_res->name }} {{-- onclick="openCropper(this)" --}} @php foreach($specialty_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
{{ $specialty->links('vendor.pagination.custom') }}