@php $i=1; if($appointment->currentPage()>1){ $page=$appointment->currentPage()-1; $i=$page*$appointment->perPage(); $i++; } @endphp @foreach($appointment as $key => $appointment_res) @php $i++; @endphp @endforeach
Id Name Phone Department Doctor Speciality Status Actions
{{ $i }} {{ $appointment_res->title }} {{ $appointment_res->firstname }} {{ $appointment_res->lastname }} {{ $appointment_res->phone }} {{ $i }} {{ $i }} {{-- onclick="openCropper(this)" --}} @php foreach($appointment_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
{{ $appointment->links('vendor.pagination.custom') }}