@extends('layouts.dash_pop') @section('title_card',"") @section('content') @if (Session::has('message'))
{{ Session::get('message') }}
@else {{ html()->form('PUT', url('/ecriture_pop_add/' . $ecriture_base->id))->open() }}

{!! "Nouvelle écriture" !!}

@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif
{!! html()->label('Compte','compte') !!} {!! html()->select('compte')->options($comptes)->value('')->placeholder('A définir')->attributes(['class' => 'form-control']) !!}
{!! html()->label('Compte Auxiliaire','compte_aux') !!} {!! html()->select('compte_aux')->options($comptes_aux)->value('')->placeholder('A définir')->attributes(['class' => 'form-control']) !!}
{!! html()->label('Désignation','designation') !!} {!! html()->text('designation', '')->attributes(['class' => 'form-control']) !!}
{!! html()->label('Débit','debit') !!} {!! html()->text('debit', '')->attributes(['class' => 'form-control']) !!}
{!! html()->label('Crédit','credit') !!} {!! html()->text('credit', '')->attributes(['class' => 'form-control']) !!}
{!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!}
{{ html()->form()->close() }} @endif @endsection