@php $entryId = $entry->getKey(); $label = "Update AI Patient"; $action ="create"; if ( empty($entry->patient_ai_id)) { $label = "Create AI Patient"; // $action = "create"; } $url = route('callPatentEndPoint', ['id' => $entryId, 'action' => $action]); @endphp {{ $label }}