33 lines
1.1 KiB
PHP

@inject('Service', 'App\Services\Service')
@php
$param = 'resources_c'; // Set this to the value you want to pass
@endphp
<!-- Row for Insights Title -->
<div class="row">
<div class="container">
<h2>PARTNERS</h2>
</div>
</div>
<!-- Row for Insights List -->
<div class="row">
<div class="container">
@if(method_exists($Service, 'get'))
<ul class="list-group list-group-flush">
@forelse ($Service->get($param) as $insight)
<li class="list-group-item list-group-item-action">
<a href="{{ $insight['url'] ?? '#' }}">
<h3>{{ $insight['title'] ?? 'No Title' }}</h3>
</a>
<p>{{ $insight['description'] ?? 'No description available.' }}</p>
</li>
@empty
<li class="list-group-item">No insights available.</li>
@endforelse
</ul>
@else
<p>The insights service is not available.</p>
@endif
</div>
</div>