@php $entryId = $entry->getKey(); $url = route('updateAiPrescriptionAiEndpoint', ['prescription_id' => $entryId]); // $url = "abc"; @endphp Ready for collect