@extends('layouts.dash') @section('title','Comptes') @section('title_card',"") @section('subtitle_card',"") @section('content')
@if (Session::has('message'))
{!! Session::get('message') !!}
@endif @if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif @if (Session::has('success'))
{!! \Session::get('success') !!}
@endif

Ecritures par Comptes du {{ $date_deb." au ".$date_fin}}

{!! html()->label('Date de début','date_debut') !!}  
{!! html()->text('date_debut', isset($date_deb)?$date_deb:'01/01/'.date('Y')) ->attributes(['id'=>'date_debut','size'=>'10','placeholder' => 'JJ/MM/AAAA', 'class' => 'form-control']) !!}
{!! html()->label('Date de fin','date_fin') !!}  
{!! html()->text('date_fin', isset($date_fin)?$date_fin:'31/12/'.date('Y')) ->attributes(['id'=>'date_fin','size'=>'10','placeholder' => 'JJ/MM/AAAA', 'class' => 'form-control']) !!}
{!! html()->label('Comptes','sel_compte') !!}  {!! html()->select('sel_compte')->options(null,'')->placeholder('Tous') ->attributes(['id'=>'sel_compte','class' => 'select2 form-control']) !!}
@if($comptes_aux_json) {!! html()->label('Comptes Auxiliaires','sel_compte_aux') !!}  {!! html()->select('sel_compte_aux')->options([])->placeholder('')->attributes(['id'=>'sel_compte_aux','class' => 'select2 form-control']) !!} @endif
{!! html()->label('Ecritures lettrées','visu_lettre') !!} {!! html()->checkbox('visu_lettre', $visu_lettre)->attributes(['id' => 'visu_lettre', 'class' => 'form-control']) !!}
@if(!$mode_lettrage) Lettrage @else Fermer le Lettrage @endif
@if($mode_lettrage) @include("comptabilite.grandlivre.liste_ecritures_lettrage",["liste_id"=>$liste_id]) @else @include("comptabilite.grandlivre.liste_ecritures_base") @endif
@endsection @section('scripts') @if($mode_lettrage) @include("comptabilite.grandlivre.script_lettrage") @include("comptabilite.grandlivre.script_datatable_nopage") @else @include("comptabilite.grandlivre.script_datatable") @endif @endsection