<div class="box-body">
    <div class="form-group">
        <label for="name">Entreprise</label>
        {{ Form::select('company_id', $companies , null, ['class' => 'form-control select2', 'placeholder' => 'Sélectionnez une entreprise...', 'required' => 'required'])  }}
    </div>
    <div class="form-group">
        <label for="name">Titre</label>
        {{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Titre'])  }}
    </div>

    <div class="form-group">
        <label for="trend_category_id">Catégorie</label>
        {{ Form::select('trend_category_id', $categories, null, ['class' => 'form-control select2', 'placeholder' => ''])  }}
    </div>


    <div class="form-group">
        <label for="description">Adresse</label>
        {{ Form::textarea('adresse', null, ['class' => 'form-control', 'placeholder' => 'Adresse', 'rows'=> 5])  }}
    </div>
    <div class="form-group">
        <label for="description">Description</label>
        {{ Form::textarea('description', null, ['class' => 'form-control', 'placeholder' => 'Description', 'rows'=> 5])  }}
    </div>
    <div class="form-group">
        <label>Lien :</label>
        <div class="input-group date">
            <div class="input-group-addon">
                <i class="fa fa-link"></i>
            </div>
            {{ Form::text('link', null, ['class' => 'form-control pull-right', 'autocomplete' => 'off'])  }}
        </div>
    </div>
    <div class="form-group">
        <label for="values">Image</label>
        @if(isset($trend->image) && !empty($trend->image))
            <div>
                <img src="{{ asset('storage/companies/'.$trend->company->id.'/trends/'.$trend->image) }}" class="" style="max-width: 300px">
            </div>
            <br>
        @endif
        {{ Form::file('image', null, ['class' => 'form-control', 'required' => 'required'])  }}
        <p class="help-block">Pour modifier l'image selectionneez une autre </p>
    </div>
</div>
<!-- /.box-body -->
<div class="box-footer text-right">
    <a href="{{ URL::previous() }}" class="btn btn-danger">Annuler</a>
    <button type="submit" class="btn btn-primary">Enregistrer</button>
</div>