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

Nouvelle écriture

{!! Form::open(['journal' => 'form', 'url' => '/compta/journal', 'class' => 'form-horizontal']) !!}
{!! Form::label('date', 'Date') !!}
{!! Form::text('date', date('d/m/Y'), ['class' => 'form-control']) !!}
{!! Form::label('numcpt', 'Numéro de compte') !!} {!! Form::hidden('numcpt', null, ['id' => 'numcpt']) !!} {!! Form::hidden('nomcpt', null, ['id' => 'nomcpt']) !!}
{!! old('numcpt') !!}
{!! Form::label('budjet', 'Budget') !!}
{!! Form::text('budget', null, ['id'=>'budget','class' => 'text-right form-control','readonly'])!!}
CFP
{!! Form::label('ref', 'Référence') !!} {!! Form::text('ref', null, ['placeholder' => 'Référence', 'class' => 'form-control']) !!}
{!! Form::label('libelle', 'Libellé') !!} {!! Form::text('libelle', null, ['placeholder' => 'Libellé', 'class' => 'form-control']) !!}
Débit
{!! Form::text('debit', null, ['placeholder' => 'Débit', 'class' => 'text-right form-control'])!!}
CFP
Crédit
{!! Form::text('credit', null, ['placeholder' => 'Crédit', 'class' => 'text-right form-control'])!!}
CFP
Compensation (facultatif)
{!! Form::label('numcpt2', 'Numéro de compte (compensation)') !!} {!! Form::hidden('numcpt2', null, ['id' => 'numcpt2']) !!} {!! Form::hidden('nomcpt2', null, ['id' => 'nomcpt2']) !!}
{!! old('numcpt2') !!}
{!! Form::label('budget2', 'Budget (compensation)') !!}
{!! Form::text('budget2', null, ['id'=>'budget2','class' => 'text-right form-control','readonly'])!!}
CFP

 

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