I want to automatically select a checkbox when the field in the database is filled in.  

I am trying to use `@if` statement in the Form generator but it is not checking the checkbox.

Here is the code I am using:

```
{!! Form::checkbox('offer_made', 'offer_made', @if(empty($phase_2->offer_made)) 1 @endif) !!}

```

Im sending this over to the view in my Controller:

```
public function show(Order $order)
{
    $order = Order::where('id', $order->id)->first();
    $current_phase = $order->current_phase;
    if($current_phase == 1) {
        $phase_2 = Order_Phase_2::where('order_id', $order->id)->first();
        return view('orders.phase-2', compact('order', 'phase_2'));
    }
}

```

When I echo `$phase_2->offer_made` in the view it shows `1` so the value is coming through but the `if statement` is not working inside the Form builder.

Anyone knows how to fix this?  

Thanks already!