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

Compensation

{!! 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', $ref, ['placeholder' => 'Référence', 'class' => 'form-control']) !!}
{!! Form::label('libelle', 'Libellé') !!} {!! Form::text('libelle', $libelle, ['placeholder' => 'Libellé', 'class' => 'form-control']) !!}
Débit
{!! Form::text('debit', $debit, ['placeholder' => 'Débit', 'class' => 'text-right form-control'])!!}
CFP
Crédit
{!! Form::text('credit', $credit, ['placeholder' => 'Crédit', 'class' => 'text-right form-control'])!!}
CFP

 

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