@php $i=1; if($Doctor->currentPage()>1){ $page=$Doctor->currentPage()-1; $i=$page*$Doctor->perPage(); $i++; } @endphp @foreach($Doctor as $key => $Doctor_res) @php $i++; @endphp @endforeach
Sl No Name Department Specialty Designation Image Status Homepage Status Display Order Actions
{{ $i }} {{ $Doctor_res->name }} {{ $Doctor_res->department ? $Doctor_res->department->name : 'N/A' }} {{ $Doctor_res->specialty ? $Doctor_res->specialty->name : 'N/A' }} {{ $Doctor_res->designation }} {{-- onclick="openCropper(this)" --}} @php foreach($Doctor_res->galleries(3)->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
{{ $Doctor->links('vendor.pagination.custom') }}