@php $isEdit = isset($row) && $row; $action = $isEdit ? route($routePrefix . '.update', $row->id) : route($routePrefix . '.store'); @endphp