<div class="related-grants-and-projects">
    <h4>Related Grants and Projects</h4>
    <ul class="list-unstyled">
        @foreach($related['grants_projects']['docs'] as $col)
            <li>
                <i class="fa fa-flask icon-portal"></i>
                <small>{{ $col['display_relationship'] }}</small>
                <a href="{{ base_url() }}{{$col['to_slug']}}/{{$col['to_id']}}"
                   title="{{ $col['to_title'] }}"
                   class="ro_preview"
                   tip="{{ $col['display_description'] }}"
                   ro_id="{{ $col['to_id'] }}">
                    {{$col['to_title']}}</a>
                {{ isset($col['to_funder']) ? "(funded by ". $col['to_funder'] .")" : '' }}
            </li>
        @endforeach
        @if($related['grants_projects']['count'] > 5)
            <li><a href="{{ $related['grants_projects']['searchUrl'] }}">View all {{ $related['grants_projects']['count'] }} related grants and projects</a></li>
        @endif
    </ul>
</div>
<div class="related-grants-and-projects">
    <h4>Related Grants and Projects</h4>
    <ul class="list-unstyled">
        @foreach($related['grants_projects']['docs'] as $col)
            <li>
                <i class="fa fa-flask icon-portal"></i>
                <small>{{ $col['display_relationship'] }}</small>
                <a href="{{ base_url() }}{{$col['to_slug']}}/{{$col['to_id']}}"
                   title="{{ $col['to_title'] }}"
                   class="ro_preview"
                   tip="{{ $col['display_description'] }}"
                    @if(isset($col['to_id']) && $col['to_id']!='false')
                        ro_id="{{ $col['to_id'] }}"
                    @elseif(isset($col["relation_identifier_id"]))
                        identifier_relation_id="{{ $col['relation_identifier_id'] }}"
                    @endif
                    >
                    {{$col['to_title']}}</a>
                {{ isset($col['to_funder']) ? "(funded by ". $col['to_funder'] .")" : '' }}
            </li>
        @endforeach
        @if($related['grants_projects']['count'] > 5)
            <li><a href="{{ $related['grants_projects']['searchUrl'] }}">View all {{ $related['grants_projects']['count'] }} related grants and projects</a></li>
        @endif
    </ul>
</div>
Add identifier relation popout to grants and projects
Add identifier relation popout to grants and projects
