@extends('backend.layouts.master')
@section('title')
Investment Summary for {{ $user->name }}
@endsection
@section('admin-content')
Investment Summary for {{ $user->name }}
Export PDF
@foreach($summary as $item)
Investment #{{ $loop->iteration }}
- Amount: {{ number_format($item['invest']->amount, 2) }}
- Percent per month: {{ $item['invest']->percent }}%
- Invest Date: {{ $item['invest']->invest_date }}
- Duration: {{ $item['invest']->months }} months
- End Date: {{ $item['end_date'] ?? date('Y-m-d', strtotime($item['invest']->invest_date . ' +'.$item['invest']->months.' months')) }}
- Total Profit (planned): {{ number_format($item['total_profit'], 2) }}
- Total Paid: {{ number_format($item['total_paid'], 2) }}
- Due Profit: {{ number_format($item['due_profit'], 2) }}
- Months Paid: {{ $item['months_paid'] }} / {{ $item['invest']->months }}
Profit Payments:
| Date |
Paid |
Remark |
@forelse($item['profits'] as $profit)
| {{ $profit->date }} |
{{ number_format($profit->paid, 2) }} |
{{ $profit->remark }} |
@empty
| No profit paid yet |
@endforelse
@endforeach
@include('backend.layouts.partials.footer')
@endsection