@extends('user.layouts.header') @section('styles') @endsection @section('content') @if(!empty($my_investments))

My Investments

@if(count($projects) > 0) @php $sno = 1; @endphp @foreach($projects as $project) @if(in_array($project->id, $my_investments)) @php $ide = Crypt::encrypt($project->id); @endphp
{{ $project->project_title }}

{{ $project->project_short_desc }}

@foreach($users as $user) @if($user->id == $project->inventor_id) @php $idu = Crypt::encrypt($user->id); @endphp

{{ $user->name }} {{ $user->last_name }}

@if(!empty( $user->contact_no)) {{ $user->contact_no }} @endif

@else @endif @endforeach @php $ide = Crypt::encrypt($project->id); @endphp View Project
@else @endif @php $sno++; @endphp @endforeach @endif
@else

Oops!

You haven't invest on any project yet!

@endif @endsection @section('scripts') @endsection