<div class="form-group<?php if($errors->has('category_id')) { echo ' has-error'; } ?>">
    <label class="col-md-3 control-label" for="category_id">Dans la catégorie</label>
    <div class="col-md-4">
        <?php echo Form::select('category_id', $categories->lists('name', 'id'), Input::old('category_id', $category->id), ['class' => 'form-control']); ?>

    </div>
</div>
<div class="form-group<?php if($errors->has('liaisoncategory_id')) { echo ' has-error'; } ?>">
    <label class="col-md-3 control-label" for="category_id">Liaison catégorie</label>
    <div class="col-md-4">
        <?php echo Form::select('liaisoncategory_id', ['0'=>'-'] + $categories->lists('name', 'id'), Input::old('liaisoncategory_id', $categoryliaison), ['class' => 'form-control']); ?>

    </div>
</div>
<div class="form-group<?php if($errors->has('parent')) { echo ' has-error'; } ?>">
    <label class="col-md-3 control-label" for="footer">Parent dans le menu</label>
    <div class="col-md-9">
	    <label class="switch switch-primary"><input type="checkbox" name="parent" value="1" <?php echo (isset($page) && $page->parent==1) ? 'checked' : ''; ?>><span></span></label>
    </div>
</div>
<div class="form-group<?php if($errors->has('published')) { echo ' has-error'; } ?>">
    <label class="col-md-3 control-label" for="published">Publiée sur le site</label>
    <div class="col-md-9">
	    <label class="switch switch-primary"><input type="checkbox" name="published" value="1" <?php echo (isset($mypage) && $mypage['published']==1) ? 'checked' : ''; ?>><span></span></label>
    </div>
</div>
<div class="form-group<?php if($errors->has('footer')) { echo ' has-error'; } ?>" style="border-bottom: 0;">
    <label class="col-md-3 control-label" for="footer">Associer au footer</label>
    <div class="col-md-9">
	    <label class="switch switch-primary"><input type="checkbox" name="footer" value="1" <?php echo (isset($page) && $page->footer==1) ? 'checked' : ''; ?>><span></span></label>
    </div>
</div>