What i'm trying to accomplish is something like this:
<?php
if (Session::has('tk'))
{
$tk = Session::get('tk');
} else {
$tk = 1;
}
if (Session::has('ntk'))
{
$ntk = Session::get('ntk');
} else {
$ntk = 0;
}
?>
{{ Form::open(array('url' => 'aanvullen')) }}
<table>
<tr>
<td>
{{ Form::submit('Toepassen') }}
</td>
<td>
{{ Form::checkbox('tijdkritisch', <?php $tk ?>, true) }} Tijdkritisch (TK) <br>
{{ Form::checkbox('niettijdkritisch', <?php $ntk ?>, false) }} Niet-tijdkritisch (NTK)
<td>
</tr>
</table>
{{ Form::close() }}
Somehow in my Form::checkbox this doesn't work. So my question is how do I accomplish this?
What i've also tried was this:
Session::get('tk', 1);
Session::get('ntk', 0);
Because this way I don't need the if because it gives a default value
<?php $tk ?>to simply$tk, the same goes for<?php $ntk ?>