<div class="modal-body">
    <div class="form-group">
        {!! Form::label('name', 'Nom du catalogue', ['class' => 'col-sm-4 control-label']) !!}
        <div class="col-sm-8">
            {{ Form::text('name', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Nom du catalogue'])  }}
        </div>
    </div>
    <div class="form-group">
        {!! Form::label('number_pages', 'Nombre de pages', ['class' => 'col-sm-4 control-label']) !!}
        <div class="col-sm-8">
            {{ Form::number('number_pages', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => '', 'min' => 0])  }}
        </div>
    </div>
    <div class="form-group">
        
        {!! Form::label('image', 'Image', ['class' => 'col-sm-4 control-label']) !!}
        <div class="col-sm-8">
        @if(isset($catalogue->image) && !empty($catalogue->image))
            <img src="{{ asset('storage/brands/'.$brand->id .'/catalogues/' . $catalogue->image) }}" class="img-responsive">
            <br>
        @endif
        {{ Form::file('image', null, ['class' => 'form-control', 'accept' => 'application/pdf'])  }}
        <p class="help-block"> Pour modifier l'image actuelle sélectionnez une autre image</p>
        </div>
    </div>
    <div class="form-group">
            {!! Form::label('file', 'Le catalogue', ['class' => 'col-sm-4 control-label']) !!}
            <div class="col-sm-8">
            @if(isset($catalogue->filename) && !empty($catalogue->filename))
                <a href="{{ asset('storage/brands/'.$brand->id .'/catalogues/' . $catalogue->filename) }}" target="_blank" class="btn btn-primary">
                    <i class="fa fa-download" aria-hidden="true"></i> Télécharger ({{ $catalogue->filename }})
                </a>
                <br>
                <br>
            @endif
            {{ Form::file('file', null, ['class' => 'form-control', 'accept' => 'application/pdf'])  }}
            <p class="help-block">Pour modifier le fichier actuel sélectionnez un autre fichier</p>
            </div>
    </div>
    <div class="row">
        <div class="col-md-6 col-md-offset-4">
            <div class="checkbox">
                <label>
                    {!! Form::hidden('archive', 0) !!}
                    {!! Form::checkbox('archive', 1) !!} Archive
                </label>
            </div>
        </div>
    </div>
    {!! Form::hidden('brand_id', $brand->id) !!}
</div>