@extends('layouts.app') @section('addhead') @endsection @section('content')
@if(Auth::user()->roles_id == 2 )Date | Libelle | Type d'operation | Toutes les opérations | {{--Solde | --}}|||
---|---|---|---|---|---|---|---|
Entrée | Sortie | ||||||
{{date('d-m-Y', strtotime($m->date_enre))}} | {{$m->libelle}} | {{$m->type}} | @if($m->debit == 0)@else | {{number_format($m->debit, 0, ',', ' ')}} | @endif @if($m->credit == 0)@else | {{number_format($m->credit, 0, ',', ' ')}} | @endif {{--@php $solde = $solde + ($m->debit - $m->credit); @endphp{{number_format($solde, 0, ',', ' ') }} | --}}