<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">Nom</label>
        {{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Nom'])  }}
    </div>
    <div class="form-group">
        <label for="adresse">Adresse</label>
        {{ Form::textarea('adresse', null, ['class' => 'form-control', 'placeholder' => 'adresse', 'rows' => 3, 'required' => 'required'])  }}
    </div>
    <div class="row">
        <div class="col-md-6">
            <div class="form-group">
                <label for="ville">Ville</label>
                {{ Form::text('ville', null, ['class' => 'form-control', 'placeholder' => 'Ville'])  }}
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group">
                <label for="country_id">Pays</label>
                {{ Form::select('country_id', $countries ,(isset($place->country_id)?$place->country_id:4), ['class' => 'form-control select2', 'placeholder' => 'Ville'])  }}
            </div>
        </div>
    </div>
    <hr class="separator">
    <div class="form-group">
        <div class="row">
            <div class="col-md-6">
                <label for="email">Email</label>
                {{ Form::text('email', null, ['class' => 'form-control', 'placeholder' => ''])  }}
            </div>
        </div>

    </div>
    <div class="form-group">
        <div class="row">
            <div class="col-md-6">
                <label for="phone">Téléphone</label>
                {{ Form::text('phone', null, ['class' => 'form-control', 'placeholder' => 'Téléphone'])  }}
            </div>
            <div class="col-md-6">
                <label for="mobile">Mobile</label>
                {{ Form::text('mobile', null, ['class' => 'form-control', 'placeholder' => 'Mobile'])  }}
            </div>
            <div class="col-md-6">
                <label for="fax">Fax</label>
                {{ Form::text('fax', null, ['class' => 'form-control', 'placeholder' => 'Fax'])  }}
            </div>
        </div>
    </div>
    <hr class="separator">
    <div class="form-group">
        <div class="row">
            <div class="col-md-6">
                <label for="lat">Latitude</label>
                {{ Form::text('lat', null, ['class' => 'form-control', 'placeholder' => 'Latitude'])  }}
            </div>
            <div class="col-md-6">
                <label for="long">Longitude</label>
                {{ Form::text('long', null, ['class' => 'form-control', 'placeholder' => 'Longitude'])  }}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="values">Image</label>
        @if(isset($place->image) && !empty($place->image))
            <div>
                <img src="{{ asset('storage/companies/'.$place->company_id.'/places/'.$place->image) }}" class="" style="max-width: 300px">
            </div>
            <br>
        @endif
        {{ Form::file('image', null, ['class' => 'form-control'])  }}
        <p class="help-block">Pour modifier l'image selectionnez 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>