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

Plan comptable {!! $exercice !!}

{!! html()->select('exercice',$exercices,$exercice)->attributes(['id' => 'exercice','class' => 'form-control']) !!}
@if($exercice==$exercice_encours) @endif @foreach ($plans as $plan) @if($exercice==$exercice_encours) @endif @endforeach
N°compte Nom Compte Catég.Bilan Catég.CR Bilan Amort.BudgetDébit Crédit @if($exercice==$exercice_encours) Solde @else Solde
(crédit-débit) @endif
@if($user->can("PLA_AJO") || $user->HasRole("ADMINISTRATEUR"))

Ajouter un compte

@endif
@if($user->can("MDT_VISU") || $user->HasRole("ADMINISTRATEUR")) @endif {!! $plan->numcpt !!} @if($user->can("MDT_VISU") || $user->HasRole("ADMINISTRATEUR")) @endif {!! $plan->nomcpt !!} {!! $plan->categ!!} {!! $plan->categ_bilan!!} {!! $plan->categ_cr!!} {!! $plan->bilan!!} {!! $plan->amort!!}{!! number_format($plan->budget,0,",","") !!}{!! number_format($plan->getDebitCalc($exercice),0,",","") !!} {!! number_format($plan->getCreditCalc($exercice),0,",","") !!} @if($exercice==$exercice_encours) {!! number_format($plan->getSoldeTotCalc($exercice),0,",","") !!} @else {!! number_format($plan->getSoldeCalc($exercice),0,",","") !!} @endif @if( $user->can("PLA_MAJ") || $user->HasRole("ADMINISTRATEUR")) @endif @if( ($user->can("PLA_SUP") || $user->HasRole("ADMINISTRATEUR")) &&($plan->getNbEcrituresAttribute()==0) ) {{ html()->form('DELETE', url('/compta_old/plan/'. $plan->id))->open() }} {{ html()->form()->close() }} @endif

@if($user->can("PLA_AJO") || $user->HasRole("ADMINISTRATEUR")) Ajouter un compte @endif

@endsection @section('scripts') @endsection