@extends('layouts.master') @section('title') Nouvelle Imputation @stop @section('content')
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif

Nouvelle Imputation

{!! Form::open(['imputation' => 'form', 'url' => '/mandatements/imputations', 'class' => 'form-horizontal']) !!} {!! Form::hidden('mode_frame',(isset($mandat)?true:false),['id'=>'mode_frame']); !!}
{!! Form::label('idmandat', 'Numéro de mandat') !!} {!! Form::text('idmandat', (isset($mandat)?$mandat->id:null), ['placeholder' => "Numéro de mandat", isset($mandat)?'readonly':'','class' => 'form-control']) !!}
{!! Form::label('cpt_imp', 'Compte Imputation') !!} {!! Form::select( 'cpt_imp',$comptes, null, ['class' => 'selectpicker','data-width' => "100%"] ) !!}
{!! Form::label('designation', 'Désignation') !!} {!! Form::textarea('designation', null, ['placeholder' => "désignation", 'rows' => '2', 'class' => 'form-control']) !!}
{!! Form::label('type_imp', 'Type') !!} {!! Form::select( 'type_imp', ['CLR'=>'CLR','CPF' => 'CPF','ASE' => 'ASE','AVI' => 'AVI','CSR' => 'CSR'], null, ['class' => 'selectpicker','data-width' => "100%"] ) !!}
{!! Form::label('montant', 'Montant') !!} {!! Form::text('montant', null, ['placeholder' => "Montant", 'class' => 'form-control']) !!}
{!! Form::label('obs', 'Observations') !!} {!! Form::textarea('obs', null, ['placeholder' => 'Observations', 'class' => 'form-control', 'rows'=>'2']) !!}

{!! Form::submit('Enregistrer les modifications', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@stop