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

Nouveau compte

{!! Form::open(['plan' => 'form', 'url' => '/compta/plan', 'class' => 'form-horizontal']) !!}
{!! Form::label('numcpt', 'Numéro') !!} {!! Form::text('numcpt', null, ['placeholder' => 'Numéro', 'class' => 'form-control']) !!}
{!! Form::label('nomcpt', 'Nom') !!} {!! Form::text('nomcpt', null, ['placeholder' => 'Nom d compte', 'class' => 'form-control']) !!}
{!! Form::label('categ', 'Compte') !!}
{!! Form::select( 'categ', ['F'=>'CCPF (F)','R' => 'CLR (R)','A' => 'AS/AV (A)','V' => 'Autre (V)'], null,['class' => 'selectpicker','data-width' => "100%"]) !!}
{!! Form::label('categ_bilan', 'Catég. pour Bilan') !!}
{!! Form::select( 'categ_bilan', ['A' => 'Actif','P' => 'Passif'], null,['class' => 'selectpicker','data-width' => "100%"]) !!}
{!! Form::label('categ_cr', 'Catég. pour Compte de Résultat') !!}
{!! Form::select( 'categ_cr', [''=>'Choisir une catégorie', 'CF'=>'Charges CCPF résultat ccpf', 'CR' => 'Charges CLR résultat clr', 'CS' => 'Charges aides sociales résultat social', 'PF'=>'Produits CCPF résultat ccpf', 'PR' => 'Produits CLR résultat clr', 'PS' => 'Produits aides sociales résultat social', ], null,['class' => 'selectpicker','data-width' => "100%"]) !!}
{!! Form::label('amort', 'Compte Amortisssement') !!} {!! Form::select( 'amort',[" "=>"Aucun"]+$comptes, null, ['class' => 'selectpicker','data-width' => "100%"] ) !!}
Budget
{!! Form::text('budget', null, ['placeholder' => 'Budget', 'class' => 'text-right form-control'])!!}
CFP
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
{!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@stop