title: Laravel IF Multiple values in Cookie
body: <p>I have a cookie in Laravel and a variable from my server.</p>
  <p>I want to validate the result of my server's variable with the result of the cookie.</p>
  <p>Normally I would use this but the detail is that my server's cookie has multiple values separated by commas and inside one of them is the value I need.</p>
  <pre class="lang-php prettyprint-override"><code>@if (Cookie::get('DeliveryToken') == '{{ $orderitemaddons32 }}')
      {{ Cookie::get('DeliveryToken') }}
  @else
      No se encontro
  @endif
  </code></pre>
  <p>How do I get it to detect the comma-separated value?
  I give you an example.</p>
  <p>My variable to compare</p>
  <pre><code>&quot;{{ $orderitemaddons32 }}&quot; value = DEL-43421
  </code></pre>
  <pre><code>&quot;DeliveryToken&quot; value: delton,DEL-43421,hp-32
  </code></pre>
  <p>As you can see the exact value after the first comma I need the if to parse all the values after the comma.
  Or if it is in the first one to stop there and give the result of the if</p>