@php $isEdit = isset($service); $route = $isEdit ? route('services.update', $service->id) : route('services.store'); @endphp