@extends('layouts.erp') @section('title', $item->number) @section('page_title', 'Écriture '.$item->number) @section('content')
Écriture {{ $item->number }}
Journal{{ $item->journal ?: '—' }}
Date{{ optional($item->entry_date)->format('d/m/Y') ?: '—' }}
Libellé{{ $item->label ?: '—' }}
Référence{{ $item->reference ?: '—' }}
Lignes
@php $td=0;$tc=0; @endphp @foreach($item->lines as $line) @php $td+=$line->debit; $tc+=$line->credit; @endphp @endforeach
CompteLibelléDébitCrédit
{{ $line->account->code ?? '' }} — {{ $line->account->label ?? '' }} {{ $line->label }} {{ number_format($line->debit, 0, ',', ' ') }} F {{ number_format($line->credit, 0, ',', ' ') }} F
Totaux {{ number_format($td, 0, ',', ' ') }} F {{ number_format($tc, 0, ',', ' ') }} F
@endsection