@extends('layouts.master')
 
@section('title') Nouvelle banque @stop
 
@section('content')
 
<div class='col-lg-8 col-lg-offset-2'>
 
    @if ($errors)
        @foreach ($errors->all() as $error)
            <div class='bg-danger alert'>{!! $error !!}</div>
        @endforeach
    @endif
 
    <h1><i class='fa fa-banque'></i> Nouvelle Banque</h1>
 
    {!! Form::open(['banque' => 'form', 'url' => '/tiers/banques']) !!}
 
    <div class="col-xs-5">
        <div class='form-group'>
        {!! Form::label('nom', 'Nom') !!}
        {!! Form::text('nom', null, ['placeholder' => 'Nom', 'class' => 'form-control']) !!}
        </div>
    </div>


    <div class='col-md-2'>
        <div class='form-group'>
        {!! Form::label('agence', 'Agence') !!}
        {!! Form::text('agence', null, ['placeholder' => 'Agence', 'class' => 'form-control']) !!}
        </div>
    </div>

    <div class='col-md-2'>
        <div class='form-group'>
        {!! Form::label('bic', 'BIC') !!}
        {!! Form::text('bic', null, ['placeholder' => 'Code BIC', 'class' => 'form-control']) !!}
        </div>
    </div>

    <div class='col-xs-9'>
        <div class='form-group'>
            {!! Form::label('adresse', 'Adresse') !!}
            {!! Form::textarea('adresse', null, ['placeholder' => 'Adresse', 'class' => 'form-control', 'rows'=>'2']) !!}
        </div>
    </div>



<div class="row">
<div class="col-sm-9">
    <div class="col-md-4">
        <div class='form-group'>
            {!! Form::label('cp', 'Code postal') !!}
            {!! Form::text('cp', null, ['placeholder' => 'Code postal', 'class' => 'form-control']) !!}
        </div>
    </div>
    <div class="col-md-6">
        <div class='form-group'>
            {!! Form::label('ville', 'Ville') !!}
            {!! Form::text('ville', null, ['placeholder' => 'Ville', 'class' => 'form-control']) !!}
        </div>
    </div>
</div>
</div>

<div class="row">
<div class="col-sm-9">
    <div class="col-md-6">
        <div class='form-group'>
            {!! Form::label('email', 'Email') !!}
            {!! Form::email('email', null, ['placeholder' => 'Email', 'class' => 'form-control']) !!}
        </div>
    </div>
    <div class="col-md-4">
        <div class='form-group'>
            {!! Form::label('fax', 'Fax') !!}
            {!! Form::text('fax', null, ['placeholder' => 'Fax', 'class' => 'form-control']) !!}
        </div>
    </div>
</div>
</div>

<div class="row">
<div class="col-sm-9">
    <div class='col-md-4'>
        <div class='form-group'>
        {!! Form::label('contact', 'Contact') !!}
        {!! Form::text('contact', null, ['placeholder' => 'Contact1', 'class' => 'form-control']) !!}
        </div>
    </div>
    <div class="col-md-4">
        <div class='form-group'>
        {!! Form::label('tel', 'Téléphone1') !!}
        {!! Form::text('tel', null, ['placeholder' => 'Téléphone1', 'class' => 'form-control']) !!}
        </div>
    </div>
</div>
</div>

<div class="row">
<div class="col-sm-9">
    <div class='col-md-4'>
        <div class='form-group'>
        {!! Form::label('contact2', 'Contact2') !!}
        {!! Form::text('contact2', null, ['placeholder' => 'Contact 2', 'class' => 'form-control']) !!}
        </div>
    </div>
    <div class="col-md-4">
        <div class='form-group'>
        {!! Form::label('tel2', 'Téléphone2') !!}
        {!! Form::text('tel2', null, ['placeholder' => 'Téléphone2', 'class' => 'form-control']) !!}
        </div>
    </div>
</div>
</div>


<div class="col-sm-9">
    <div class='form-group'>
        {!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!}
    </div>
 </div>

    {!! Form::close() !!}
 
</div>
 
@stop