@if(Session::has('destination'))
@if(Session::get('destination') == 'wholesale')
@if (!Auth::guest())
{!! Form::open(['method'=>'POST','action' => ['SiteController@addToCart', $product->id]]) !!}
{!! Form::hidden('qty', 1 ) !!}
{!! Form::submit('Add to Cart', ['class'=>'btn btn-info btn-block']) !!}
{!! Form::close() !!}
@endif
@else
{!! Form::open(['method'=>'POST','action' => ['SiteController@addToCart', $product->id]]) !!}
{!! Form::hidden('qty', 1 ) !!}
{!! Form::submit('Add to Cart', ['class'=>'btn btn-info btn-block']) !!}
{!! Form::close() !!}
@endif
@else
{!! Form::open(['method'=>'POST','action' => ['SiteController@addToCart', $product->id]]) !!}
{!! Form::hidden('qty', 1 ) !!}
{!! Form::submit('Add to Cart', ['class'=>'btn btn-info btn-block']) !!}
{!! Form::close() !!}
@endif