@extends('layouts.dash') @section('title','Grand Livre') @section('title_card',"Grand Livre") @section('subtitle_card',"Liste complète") @section('content')
@if (Session::has('message'))
{!! Session::get('message') !!}
@endif
{!! Form::label('jnx', 'Journal') !!} {!! Form::select('jnx', $liste_journaux+["ALL"=>"Tous"],isset($jnx)?$jnx:"", ['placeholder'=>'Choisissez un journal','id'=>'jnx','class' => 'form-control']) !!}
{!! Form::label('date_debut', 'Date de début') !!}
{!! Form::text('date_debut',isset($date_debut)?$date_debut:'01/01/'.date('Y'), ['id'=>'date_debut','placeholder' => 'JJ/MM/AAAA', 'class' => 'form-control']) !!}
{!! Form::label('date_fin', 'Date de fin') !!}
{!! Form::text('date_fin',isset($date_fin)?$date_fin:'31/12/'.date('Y'), ['id'=>'date_fin','placeholder' => 'JJ/MM/AAAA', 'class' => 'form-control']) !!}
@if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")) Nouvelle transaction @endif @if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")|| $user->canPermissionName("GLI_MAJ")) @endif @foreach ($grandlivre as $ligneGL) @if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")|| $user->canPermissionName("GLI_MAJ")) @endif @endforeach
Transaction Ref Date Piece journal Code Compte Compte Code Compte Aux. Nom Compte AUx. Designation Débit Crédit
@if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")|| $user->canPermissionName("GLI_VISU")) {!! $ligneGL->IdTransaction !!} @else {!! $ligneGL->IdTransaction !!} @endif {!! $ligneGL->ref_doc !!} {!! $ligneGL->date_doc !!} @if(strlen($ligneGL->type)>=7) @if(substr($ligneGL->type,0,7)=="SALAIRE") {!! "Bulletin N° ".str_pad($ligneGL->piece,"0",4,STR_PAD_RIGHT) !!} @endif @if(substr($ligneGL->type,0,7)=="FACTURE") {!! "Achat N° ".str_pad($ligneGL->piece,"0",4,STR_PAD_RIGHT) !!} @endif @endif {!! $ligneGL->journal !!} {!! $ligneGL->compte !!} {!! $ligneGL->CompteLabel !!} {!! $ligneGL->compte_aux !!} {!! $ligneGL->compte_aux_label !!} {!! $ligneGL->designation !!} {!! $ligneGL->debit !!} {!! $ligneGL->credit !!} @if($ligneGL->verrou!=1) {!! Form::open(['url' => url('grand_livre/' . $ligneGL->id), 'method' => 'DELETE']) !!} {{ csrf_field() }} @if($ligneGL->IsSupprimable) @endif {!! Form::close() !!} @endif
@endsection @section('scripts') @include("forms.scripts_datatable_btn") @endsection