49 lines
1.8 KiB
PHP
49 lines
1.8 KiB
PHP
@inject('Service', 'App\Services\Service')
|
|
@php
|
|
$param = 'overview_b'; // Set this to the value you want to pass
|
|
@endphp
|
|
|
|
|
|
|
|
|
|
@if(method_exists($Service, 'get') && is_array($Service->get($param)))
|
|
|
|
@php
|
|
$benefits = $Service->get($param);
|
|
@endphp
|
|
|
|
<div class="col-12">
|
|
<h3>KEY BENEFITS</h3>
|
|
<ul class="list-group list-group-flush">
|
|
@forelse ($benefits['group1'] ?? [] as $benefit)
|
|
<li class="list-group-item list-group-item-action">
|
|
<a href="{{ $benefit['url'] ?? '#' }}">
|
|
<h3>{{ $benefit['title'] ?? 'No Title' }}</h3>
|
|
</a>
|
|
<p>{{ $benefit['description'] ?? 'No description available.' }}</p>
|
|
</li>
|
|
@empty
|
|
<li class="list-group-item">No benefits available.</li>
|
|
@endforelse
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<ul class="list-group list-group-flush">
|
|
@forelse ($benefits['group2'] ?? [] as $benefit)
|
|
<li class="list-group-item list-group-item-action">
|
|
<a href="{{ $benefit['url'] ?? '#' }}">
|
|
<h3>{{ $benefit['title'] ?? 'No Title' }}</h3>
|
|
</a>
|
|
<p>{{ $benefit['description'] ?? 'No description available.' }}</p>
|
|
</li>
|
|
@empty
|
|
<li class="list-group-item">No additional benefits available.</li>
|
|
@endforelse
|
|
</ul>
|
|
|
|
@else
|
|
<p>The benefits service is not available.</p>
|
|
@endif
|
|
</div>
|