Q:

how to declare variable by using the following symbol "{!!" in Laravel

I am using a ternary operator. Here is my code:
<td>
        {!! $cooking->deleted_at ?
        '<button type="button" data-id="{{$cooking->id}}"
            data-target="#restore-CF">Enable</button>'
        :'<button type="button" data-id="{{$cooking->id}}"
          data-target="#exampleModal-3">Disable</button>'!!}
</td>

When I inspect by using the chrome developer tool and inspect over the following code data-id="{{$cooking->id}}" it shows <?php echo e($cooking->id); ?>, 
but by inspecting I am suppose to get the value of a number i.e 12. 
How to fix this error?

A:

Remove quotes and use blade if statements
    @if($cooking->trashed())
      <button type="button" data-id="{{$cooking->id}}"
                data-target="#restore-CF">Enable</button>
    @else
     <button type="button" data-id="{{$cooking->id}}"
              data-target="#exampleModal-3">Disable</button>
    @endif

