@foreach($depotCategories as $depotCategorie)
{!! Form::checkbox('categories[]', $depotCategorie->id, $document ? isDepotCategorie($depotCategorie->id, $document->categories) : false, array("id" => "categorie-" . $depotCategorie->id, "class" => "filled-in chk-col-teal")) !!}
@endforeach
@foreach($profils as $profil)
{!! Form::checkbox('profils[]', $profil->id, $document ? isProfil($profil->id, $document->profils) : false, array("id" => "profil-" . $profil->id, "class" => "filled-in chk-col-teal")) !!}
@endforeach
@if($document && $document->fichier)
{{ $document->fichier }}
@endif
@if($document && is_dir(public_path()."/plugins/depot/img/{$document->id}") && file_exists( public_path()."/plugins/depot/img/{$document->id}/couverture.jpg" ))
@endif
{!! Form::hidden('id') !!}
{!! Form::hidden('fichier') !!}
@if($document)
{!! Form::hidden('old_cat', $document->depot_categorie_id) !!}
{!! Form::hidden('old_user', $document->user_id) !!}
@endif
{!! Form::close() !!}
@stop
@section('js')
@parent
{!! Html::script("adminbsb_plugins/bootstrap-select/js/bootstrap-select.min.js") !!}
@stop