@php // Les données sont calculées par DonneesPrisesEnComptePourMaSimulationCalculator $montant_bien = $montant_bien ?? 0; $frais_notaire = $frais_notaire ?? 0; $montant_foncier = $montant_foncier ?? 0; $fiscalite_info = $fiscalite_info ?? null; $montant_travaux_non_eligible = $montant_travaux_non_eligible ?? null; $apport = $apport ?? 0; $frais_garantie = $frais_garantie ?? 0; $taux_emprunt = $taux_emprunt ?? 0; $taux_assurance = $taux_assurance ?? 0; $duree_annee = $duree_annee ?? 0; $revenu_net_imposable = $revenu_net_imposable ?? 0; $revenu_foncier = $revenu_foncier ?? 0; $nb_parts_fiscales = $nb_parts_fiscales ?? 1; $loyer_moyen = $loyer_moyen ?? 0; $taux_revalorisation_loyer = $taux_revalorisation_loyer ?? 1; $taxe_fonciere = $taxe_fonciere ?? 0; $charge_copropriete_mensuel = $charge_copropriete_mensuel ?? 0; $taux_revalorisation_bien = $taux_revalorisation_bien ?? 0.01; // Récupérer montant_travaux depuis fiscalite_info si disponible $montant_travaux = null; if (isset($fiscalite_info->avantage_fiscal->montant_travaux)) { $montant_travaux_str = $fiscalite_info->avantage_fiscal->montant_travaux; // Extraire le nombre (enlever espaces et €) $montant_travaux = floatval(str_replace([' ', '€'], '', $montant_travaux_str)); } @endphp
@include('simulator.templates.shared._titre_page', ['titreContent' => 'Données prises en compte pour ma simulation'])
Récapitulatif de votre investissement MONTANT DU BIEN
{{ number_format($montant_bien, 0, ',', ' ') }} €
MONTANT FRAIS DE NOTAIRE
{{ number_format($frais_notaire, 0, ',', ' ') }} €
MONTANT FONCIER
{{ (isset($lot) && $lot) ? number_format($lot->getPrixFoncier(), 0, ',', ' ') . ' €' : (isset($montant_foncier) ? number_format($montant_foncier, 0, ',', ' ') . ' €' : '-') }}
MONTANT DES TRAVAUX ÉLIGIBLES AU MONUMENTS HISTORIQUES
{{ isset($fiscalite_info->avantage_fiscal->montant_travaux) ? $fiscalite_info->avantage_fiscal->montant_travaux : '-' }}
@if(isset($montant_travaux_non_eligible) && $montant_travaux_non_eligible) TRAVAUX NON ÉLIGIBLES
{{ number_format($montant_travaux_non_eligible, 0, ',', ' ') }} €
@endif
Données nécessaires au calcul du financement APPORT
{{ number_format($apport, 0, ',', ' ') }} €
FRAIS DE GARANTIE BANCAIRE
{{ number_format($frais_garantie, 0, ',', ' ') }} €
TAUX D'EMPRUNT
{{ number_format($taux_emprunt, 1, ',', ' ') }} %
TAUX D'ASSURANCE
{{ number_format($taux_assurance, 1, ',', ' ') }} %
DURÉE DE L'EMPRUNT
{{ $duree_annee }} ans
Situation fiscale REVENU NET IMPOSABLE
{{ isset($fiscalite_info->imposition->revenu_net_imposable) ? $fiscalite_info->imposition->revenu_net_imposable : number_format($revenu_net_imposable, 0, ',', ' ') . ' €' }}
DONT BÉNÉFICE FONCIER
{{ isset($fiscalite_info->imposition->revenu_foncier) ? $fiscalite_info->imposition->revenu_foncier : number_format($revenu_foncier, 0, ',', ' ') . ' €' }}
NOMBRE DE PARTS FISCALES
{{ isset($fiscalite_info->imposition->nombre_part) ? $fiscalite_info->imposition->nombre_part : number_format($nb_parts_fiscales, 1, ',', ' ') }}
Répartition des appels de fonds @php // Utiliser repartition_travaux_formatted du calculator si disponible (formaté avec 2 décimales) // Sinon utiliser repartition_travaux de fiscalite_info $repartition = null; $hasRepartition = false; if (isset($repartition_travaux_formatted) && is_array($repartition_travaux_formatted) && count($repartition_travaux_formatted) > 0) { $repartition = $repartition_travaux_formatted; $hasRepartition = true; } elseif (isset($fiscalite_info) && isset($fiscalite_info->avantage_fiscal)) { if (isset($fiscalite_info->avantage_fiscal->repartition_travaux)) { $repartition = $fiscalite_info->avantage_fiscal->repartition_travaux; // Si c'est un objet, le convertir en tableau if (is_object($repartition)) { $repartition = (array) $repartition; } $hasRepartition = is_array($repartition) && count($repartition) > 0; } } @endphp @if($hasRepartition) @foreach($repartition as $key => $value) @php $margin = 121 + (($key-1)*200); $montant = $value ?? '-'; // Seulement convertir si c'est vide ou null if ($montant === '' || $montant === null) { $montant = '-'; } @endphp @if($key == 0) ANNÉE {{ $key+1 }}
{{ $montant }}
@else ANNÉE {{ $key+1 }}
{{ $montant }}
@endif @endforeach @else {{-- Fallback si pas de répartition --}} ANNÉE 1
-
ANNÉE 2
-
ANNÉE 3
-
ANNÉE 4
-
@endif
Les incidences sur le tableau de trésorerie MONTANT DES LOYERS
{{ number_format($loyer_moyen, 0, ',', ' ') }} €
REVALORISATION ANNUELLE DU LOYER
{{ number_format($taux_revalorisation_loyer, 0, ',', ' ') }} %
TAXE FONCIÈRE
{{ number_format($taxe_fonciere, 0, ',', ' ') }} €
CHARGES COPRO / MOIS
{{ number_format($charge_copropriete_mensuel, 0, ',', ' ') }} €
TAUX DE REVALORISATION ANNUELLE DU BIEN IMMOBILIER
{{ number_format($taux_revalorisation_bien * 100, 0, ',', ' ') }} %