@extends('layouts.dash') @section('title','Journaux') @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

Journaux - {!! (isset($view) && ($view=='transactions'))?'Vue par transaction':'Vue par écritures' !!} - 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']) !!}
 Rechercher @if($user->hasRole("ADMINISTRATEUR") || $user->can("JNX_SUP")) @if( isset($jnx) && $jnx && $jnx<>"ALL" && isset($date_deb) && isset($date_fin) && substr($date_deb,2)==substr($date_fin,2))  Supprimer les transactions @endif @endif
@if($user->hasRole("ADMINISTRATEUR") || $user->can("GLI_MAJ"))  Nouvelle transaction @endif
{!! html()->label('Journal','select_jnx') !!}   {!! html()->select('select_jnx')->options($liste_journaux+["ALL"=>"Tous"]) ->value(isset($jnx)?$jnx:"") ->placeholder('Choisir un journal') ->attributes(['id'=>'select_jnx','class' => 'form-control']) !!}   
@if(isset($view) && ($view=='transactions')) @include("comptabilite.grandlivre.liste_transactions") @else @include("comptabilite.grandlivre.liste_ecritures") @endif
@endsection @section('scripts') @include("comptabilite.grandlivre.script_datatable") @endsection