@extends('layouts.dash')
@section('title') Balance @stop
@section('title_card') Balance @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
| CompteTri |
Compte |
Designation |
Débit |
Crédit |
Solde |
@php $total_debit=0;$total_credit=0;$solde=0; @endphp
@foreach ($t_plan as $key=>$ligne)
@php
$total_debit+=$ligne['debit'];
$total_credit+=$ligne['credit'];
$solde=$total_debit-$total_credit;
@endphp
| {!! str_pad($ligne['compte'],7,'0',STR_PAD_RIGHT) !!} |
{!! $ligne['compte'] !!}
|
{!! $ligne['compte_libelle'] !!} |
{!! $ligne['debit'] !!} |
{!! $ligne['credit'] !!} |
{!! $ligne['solde'] !!} |
@endforeach
|
{{ $total_debit }} |
{{ $total_credit }} |
{{ $total_debit-$total_credit }} |
@endsection
@section('scripts')
@endsection