@if($logoUrl && file_exists($logoUrl)) Logo @else

{{ $companyName }}

@endif

{{ $companyName }}

{{ $companyAddress }}
Phone: {{ $phone1 }}{{ $phone2 ? ' / ' . $phone2 : '' }}
Email: {{ $email }}
INVESTMENT SUMMARY REPORT

Investor Information

Name: {{ $user->name }} Phone: {{ $user->phone ?? 'N/A' }}
Email: {{ $user->email ?? 'N/A' }} Report Date: {{ date('d M, Y') }}
@foreach($summary as $index => $item)
Investment #{{ $index + 1 }}
Investment Amount: {{ number_format($item['invest']->amount, 2) }} BDT Percent per Month: {{ $item['invest']->percent }}%
Start Date: {{ $item['invest']->invest_date }} Duration: {{ $item['invest']->months }} months
End Date: {{ $item['end_date'] }} Status: @if($item['months_paid'] >= $item['invest']->months) Completed @elseif(strtotime($item['end_date']) < strtotime('today')) Overdue @else Active @endif
Total Expected Profit: {{ number_format($item['total_profit'], 2) }} BDT Months Paid: {{ $item['months_paid'] }} / {{ $item['invest']->months }}
Total Paid: {{ number_format($item['total_paid'], 2) }} BDT Due Profit: {{ number_format($item['due_profit'], 2) }} BDT
Profit Payment History
@if($item['profits']->count() > 0) @foreach($item['profits'] as $profitIndex => $profit) @endforeach
# Date Amount Paid Remark
{{ $profitIndex + 1 }} {{ $profit->date }} {{ number_format($profit->paid, 2) }} BDT {{ $profit->remark ?? '-' }}
@else
No profit payments recorded yet
@endif
@endforeach