title: How to access a variable inside a .blade file
body: <p>I have a js file that declares a component's data like so</p>
  
  <pre><code>data() {
      return {
          registerForm: $.extend(true, new SparkForm({
              hasCoupon: false,
          }), Spark.forms.register)
      }
  }
  </code></pre>
  
  <p>and a blade file that tries to access <code>hasCoupon</code> like so</p>
  
  <pre><code>@if(!$registerForm.hasCoupon)
    @include('spark::auth.register-billing')
  @else
    @include('spark::auth.register-coupon')
  @endif
  </code></pre>
  
  <p>But this throws the error</p>
  
  <blockquote>
    <p>Use of undefined constant hasCoupon - assumed 'hasCoupon'</p>
  </blockquote>
  
  <p>How can I access this variable?</p>