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

Compte {!! $plan->numcpt !!}

{!! Form::model($plan, ['plan' => 'form', 'url' => '/compta/plan/' . $plan->id , 'class' => 'form-horizontal', 'method' => 'PUT']) !!}
N°Compte
{!! 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 C.R.') !!}
{!! 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 (Calculé)
{!! Form::text('debit_calc', $plan->getDebitCalc(), ['readonly', 'class' => 'text-right form-control'])!!}
CFP
Crédit (Calculé)
{!! Form::text('credit_calc', $plan->getCreditCalc(), ['readonly', 'class' => 'text-right form-control'])!!}
CFP
{!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@stop