@extends('layouts.dash') @section('title','Grand Livre') @if(isset($view) && ($view=='transactions')) @section('title_card',"Grand Livre - Vue par transaction") @else @section('title_card',"Grand Livre - Vue par écritures") @endif @section('subtitle_card',"Liste complète") @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
{!! 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('Journal','jnx') !!} {!! html()->select('jnx')->options($liste_journaux+["ALL"=>"Tous"]) ->value(isset($jnx)?$jnx:"") ->placeholder('Choisir un journal') ->attributes(['id'=>'jnx','class' => 'form-control']) !!}
@if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")) @endif @if(isset($view) && ($view=='transactions')) @include("comptabilite.grandlivre.liste_transactions") @else @include("comptabilite.grandlivre.liste_ecritures") @endif
@endsection @section('scripts') @include("forms.scripts_datatable_btn") @endsection