@extends("../dashboard._blank") @section("sidebar") @include("../dashboard._sidebar") @endsection @section("css_add") @endsection @section("content")
@if ($errors->any())
@endif @if(session("success"))
{{ session('success') }}
@elseif(session("error"))
{{ session('error') }}
@endif

Remboursement sur le Projet

Client: {{ $contribution->user->first_name }} {{ $contribution->user->last_name }} | Projet: {{ $project->titre }}

Client

{{ $contribution->user->first_name }} {{ $contribution->user->last_name }}

Montant Investis

{{ $contribution->montant }} XOF

Rendement annuel

{{ $project->pourcentage_gain }} %

Total Gain

{{ intVal((($project->action_prix * $contribution->part)*($project->pourcentage_gain/100)) * $project->date_gain ) }} XOF

Total Retour sur Investissement

{{ $contribution->montant + (intVal((($project->action_prix * $contribution->part)*($project->pourcentage_gain/100)) * $project->date_gain )) }} XOF

Montant Total Remboursé

{{ $total_rembourse }}

XOF
Total Restant à Rembourser

{{ ($contribution->montant + (intVal((($project->action_prix * $contribution->part)*($project->pourcentage_gain/100)) * $project->date_gain )) - $total_rembourse) }}

XOF

Historique des remboursements

@if($remboursements->count() > 0) @foreach($remboursements as $remboursement) @endforeach
Action Status Montant Type Année Remboursé par Remboursé le
@if($remboursement->status==='pending')
year)===intval(date('Y'))) action="{{ route('investment.remboursement') }}" @endif method="post"> @csrf @if(intval($remboursement->year)===intval(date('Y'))) @endif
@else Complété @endif
@if($remboursement->status==='pending') En attente @else Terminé @endif {{ number_format($remboursement->montant, 0, ',', ' ') }} XOF {{ $remboursement->type }} {{ $remboursement->year }} @if($remboursement->paid_by) {{ $remboursement->paid_by }} @else --- @endif @if($remboursement->paid_id) {{ date("d/m/Y H:i", strtotime($remboursement->paid_id)) }} @else --- @endif
@else

Aucun remboursement enregistré

Les remboursements apparaîtront ici une fois qu'ils seront traités.

@endif
@endsection