32 lines
1.1 KiB
PHP

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