64 lines
2.4 KiB
PHP
64 lines
2.4 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('content')
|
|
<h2><i class="fas fa-users"></i> Créer un contact</h2>
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
<div class="form-wrapper">
|
|
{!! Form::open(['route' => 'contact.store', 'enctype' => 'multipart/form-data']) !!}
|
|
<div class="form-split">
|
|
<div class="form-field">
|
|
{!! Form::label('contact_ref', 'Ref *') !!}
|
|
{!! Form::input('text', 'contact_ref', null, ['required']) !!}
|
|
</div>
|
|
<div class="form-field">
|
|
{!! Form::label('contact_email', 'Email *') !!}
|
|
{!! Form::email('contact_email', null, ['required']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="form-split">
|
|
<div class="form-field">
|
|
{!! Form::label('contact_nom', 'Nom *') !!}
|
|
{!! Form::input('text','contact_nom', null, ['required']) !!}
|
|
</div>
|
|
<div class="form-field">
|
|
{!! Form::label('contact_prenom', 'Prénom *') !!}
|
|
{!! Form::input('text','contact_prenom', null, ['required']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="form-split">
|
|
<div class="form-field">
|
|
{!! Form::label('contact_cp', 'Code Postal *') !!}
|
|
{!! Form::input('text','contact_cp', null, ['required']) !!}
|
|
</div>
|
|
<div class="form-field">
|
|
{!! Form::label('contact_ville', 'Ville *') !!}
|
|
{!! Form::input('text','contact_ville', null, ['required']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="form-split">
|
|
|
|
<div class="form-field">
|
|
<label for="contact_country">Pays</label>
|
|
<select name="contact_country" id="contact_country">
|
|
<option value="250">France</option>
|
|
<option value="056">Belgique</option>
|
|
<option value="442">Luxembourg</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-field submit">
|
|
<span>Les champs avec un * sont obligatoires</span>
|
|
{!! Form::submit('Enregistrer') !!}
|
|
</div>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
@endsection
|