@php $isEdit = $isEdit ?? false; $action = $isEdit ? route('master-data.update', [$type, $record->id]) : route('master-data.store', $type); $method = $isEdit ? 'PUT' : 'POST'; @endphp
{{ $message }}