@extends('layouts.dash') @section('title') BalanceAUx @stop @section('title_card') Balance Auxiliaire @stop @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
{!! 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','select_jnx') !!}   {!! html()->select('select_jnx')->options($liste_journaux) ->value(isset($jnx)?$jnx:"") ->placeholder('')->attributes(['id'=>'select_jnx','class' => 'form-control']) !!}
   {!! html()->label('Comptes Auxiliaires','select_compte_aux') !!}   {!! html()->select('select_compte_aux')->options($liste_comptes_aux) ->value(isset($compte_aux)?$compte_aux:"")->placeholder('') ->attributes(['id'=>'select_compte_aux','class' => 'form-control']) !!}
@php $total_debit=0;$total_credit=0;$solde=0; @endphp @foreach ($liste_comptes as $compte) @php $total_debit+=$compte->debit; $total_credit+=$compte->credit; @endphp @if($compte->debit||$compte->credit) @endif @endforeach
Compte Designation Débit Crédit Solde
@if($compte->designation) {!! $compte->compte_aux !!} @else {!! $compte->compte_aux !!} @endif {!! $compte->designation !!} {!! $compte->debit !!} {!! $compte->credit !!} {!! $compte->debit-$compte->credit !!}
{{ $total_debit }} {{ $total_credit }} {{ $total_debit-$total_credit }}
@endsection @section('styles') @stop @section('scripts') @endsection