@extends('layouts.app') @section('title', 'Budget & prévisionnel · ' . $organization->name) @section('eyebrow', 'Piloter') @section('heading', 'Budget & prévisionnel') @section('content') @php $periodicityLabels = [ 'monthly' => 'Mensuelle', 'quarterly' => 'Trimestrielle', 'dated_once' => 'Ponctuelle', ]; $allocationLabels = [ 'constant_open_months' => 'Constante sur mois ouverts', 'previous_year_profile' => 'Profil de l’an dernier', 'manual' => 'Manuelle', ]; $months = [ 'Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.', ]; @endphp
Exercice {{ $year }} · réalisé au 31 juillet
@if($viewMode === 'budget')
Produits {{ number_format($kpis['products_landing'], 0, ',', ' ') }} € projetés / {{ number_format($kpis['products_current'], 0, ',', ' ') }} € courants
Charges {{ number_format($kpis['charges_landing'], 0, ',', ' ') }} € projetées / {{ number_format($kpis['charges_current'], 0, ',', ' ') }} € courantes
Résultat {{ $kpis['result_landing'] >= 0 ? '+' : '−' }}{{ number_format(abs($kpis['result_landing']), 0, ',', ' ') }} € atterrissage / {{ number_format($kpis['result_current'], 0, ',', ' ') }} € courant

Budget {{ $year }}

Le réalisé provient exclusivement des transactions catégorisées.

@foreach($products as $item) @include('tenant.budget.partials.line', ['item' => $item]) @endforeach @foreach($charges as $item) @include('tenant.budget.partials.line', ['item' => $item]) @endforeach
Catégorie Périodicité Par échéance Annuel Réalisé Atterrissage Écart
Produits
Charges
@else
TRÉSORERIE CONSOLIDÉE

Prévisionnel de trésorerie

Encaissements, décaissements et trajectoire de solde sur 12 mois.

Solde actuel {{ number_format($treasury['current_balance'], 0, ',', ' ') }} € au 31 juillet
Fin de période {{ number_format($treasury['year_end'], 0, ',', ' ') }} € projection au 31 décembre
Point bas {{ number_format($treasury['low_point'], 0, ',', ' ') }} € {{ $treasury['low_point_date']->translatedFormat('d F Y') }}
Seuil de sécurité {{ number_format($treasury['threshold'], 0, ',', ' ') }} € 1 passage sous le seuil

Trajectoire de trésorerie

Barres pleines : réalisé · barres allégées : prévisionnel · courbe : solde cumulé

Entrées Sorties Solde

Lecture mensuelle

Cliquez sur un mois pour afficher son détail.

@foreach($treasury['months'] as $month) @php($net = $month['income'] - $month['expense']) @endforeach
Mois Entrées Sorties Solde du mois Solde cumulé Statut
{{ $month['label'] }} {{ $month['state'] === 'actual' ? 'Réalisé' : 'Prévisionnel' }} +{{ number_format($month['income'], 0, ',', ' ') }} € −{{ number_format($month['expense'], 0, ',', ' ') }} € {{ $net >= 0 ? '+' : '−' }}{{ number_format(abs($net), 0, ',', ' ') }} € {{ number_format($month['balance'], 0, ',', ' ') }} € @if($month['status'] === 'critical') Critique @elseif($month['status'] === 'watch') Sous surveillance @else Sain @endif
@endif
@foreach($lineData as $item) @php($line = $item['line'])
@csrf @method('PATCH')
ÉDITER LA LIGNE BUDGÉTAIRE

{{ $line->category->name }}

L’annuel est toujours calculé depuis les douze mois.

@foreach($allocationLabels as $key => $label) @endforeach
@foreach($months as $monthIndex => $monthLabel) @endforeach
Annuel calculé {{ number_format((float) $line->annual_amount, 0, ',', ' ') }} €
@endforeach
@csrf
PHOTO IMMUTABLE

Prendre une photo du budget

@endsection