@extends('layouts.app') @section('title', 'Transactions & rapprochement · ' . $organization->name) @section('eyebrow', 'Piloter') @section('heading', 'Transactions & rapprochement') @section('content') @php $previousMonth = $month->copy()->subMonth()->format('Y-m'); $nextMonth = $month->copy()->addMonth()->format('Y-m'); $statusLabels = [ 'automatic' => 'Automatique', 'suggestion' => 'À confirmer', 'multi_suggestion' => 'Vérifier la remise', 'confirmed' => 'Confirmé', 'manual' => 'À traiter', ]; $remiseTransaction = $transactions->firstWhere( 'match_level', 'multi_suggestion' ); @endphp
{{ ucfirst($month->translatedFormat('F Y')) }}
Format Crédit Agricole mémorisé · dédoublonnage actif
{{ $stats['total'] }} transactions importées
{{ $stats['automatic'] }} · {{ $stats['automatic_rate'] }} % traitées automatiquement
{{ $stats['confirm'] }} suggestions à confirmer
{{ $stats['manual'] }} à traiter manuellement

Relevé de {{ $month->translatedFormat('F') }}

Libellés bruts de la banque, conservés sans modification.

Date Libellé Catégorie Statut Actions Montant
@forelse($transactions as $transaction)
{{ $transaction->raw_label }} {{ $transaction->bankAccount?->account_name }}
@if($transaction->category) {{ $transaction->category->name }} @else @endif @if($transaction->match_level === 'suggestion' && !$transaction->suggestion_rejected) @if($transaction->suggestion_type === 'partial_invoice') Acompte à confirmer @elseif($transaction->suggestion_type === 'internal_entry') Pointage à confirmer @else Rapprochement à confirmer @endif
@csrf @method('PATCH')
@csrf @method('PATCH')
@elseif($transaction->match_level === 'multi_suggestion') @else {{ $statusLabels[$transaction->match_level] ?? $transaction->match_level }} @endif {{ $transaction->amount > 0 ? '+' : '−' }}{{ number_format(abs((float) $transaction->amount), 2, ',', ' ') }} €
@empty
Aucune transaction pour ce filtre.
@endforelse
@if($closure)

Rapprochement bancaire — {{ $month->translatedFormat('F') }}

Clôture possible uniquement lorsque l’écart net est nul.

@csrf @method('PATCH')
Solde banque au 31/{{ $month->format('m') }} {{ number_format((float) $closure->bank_balance, 2, ',', ' ') }} € relevé Crédit Agricole importé
Solde comptable {{ number_format((float) $closure->accounting_balance, 2, ',', ' ') }} € écritures de l’application
Écart expliqué {{ number_format((float) $closure->explained_difference, 2, ',', ' ') }} € {{ $closure->explanation_text }} · écart net : {{ number_format((float) $closure->net_difference, 2, ',', ' ') }} €
@endif
@if($remiseTransaction)
@csrf @method('PATCH')
RAPPROCHEMENT GROUPÉ

Remise de chèques n°0847

La somme doit correspondre exactement à {{ number_format(abs((float) $remiseTransaction->amount), 2, ',', ' ') }} €.

@foreach($batchInvoices as $invoice) @endforeach
@endif @foreach($transactions->whereNull('category_id') as $transaction)
@csrf @method('PATCH')
CATÉGORISER LA TRANSACTION

{{ $transaction->raw_label }}

{{ $transaction->transaction_date->format('d/m/Y') }} · {{ $transaction->bankAccount?->account_name }} · {{ number_format(abs((float) $transaction->amount), 2, ',', ' ') }} €

@endforeach @endsection