@extends('layouts.erp') @section('title', 'Grand livre') @section('page_title', 'Grand livre '.$annee) @section('page_sub', 'Mouvements par compte, avec solde progressif') @section('content') @php $fmt = fn ($n) => number_format((float) $n, 0, ',', ' ').' F'; @endphp
@include('finance.journals.tabs')
@include('finance.journals.year') @include('partials.list-export', ['type' => 'grand-livre', 'query' => ['annee' => $annee, 'compte' => $compte]])
@forelse($books as $book)
{{ $book['code'] }} — {{ $book['label'] }}
@foreach($book['movements'] as $line) @endforeach
DateJournalPièceLibelléDébitCréditSolde
{{ $line['date'] }} {{ $line['journal'] }} {{ $line['number'] }} {{ $line['label'] }} {{ $line['debit'] > 0 ? $fmt($line['debit']) : '—' }} {{ $line['credit'] > 0 ? $fmt($line['credit']) : '—' }} {{ $fmt($line['solde']) }} {{ $line['sens'] }}
@empty
Aucune écriture validée sur l'exercice {{ $annee }}.
@endforelse @endsection