35 lines
1.5 KiB
PHP
35 lines
1.5 KiB
PHP
<article class="flex flex-col rounded-lg border border-neutral-200 p-5">
|
|
<div class="flex items-center gap-3">
|
|
@if ($tool->logo_url)
|
|
<img src="{{ $tool->logo_url }}" alt="{{ $tool->name }} logo" class="h-10 w-10 rounded-md object-cover" loading="lazy">
|
|
@endif
|
|
<div>
|
|
<h3 class="font-semibold leading-tight">
|
|
<a href="{{ route('tools.show', $tool) }}" class="hover:underline">{{ $tool->name }}</a>
|
|
</h3>
|
|
<a href="{{ route('tools.category', $tool->category) }}" class="text-xs text-neutral-500 hover:text-neutral-900">
|
|
{{ $tool->category_label }}@if ($tool->subcategory) · {{ $tool->subcategory }} @endif
|
|
</a>
|
|
</div>
|
|
@if ($tool->featured)
|
|
<span class="ml-auto rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-800">Featured</span>
|
|
@endif
|
|
</div>
|
|
|
|
<p class="mt-3 flex-1 text-sm text-neutral-600">{{ str($tool->description)->limit(120) }}</p>
|
|
|
|
<div class="mt-4 flex flex-wrap items-center justify-between gap-2">
|
|
@if ($tool->pricing)
|
|
<span class="rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-700">{{ $tool->pricing }}</span>
|
|
@endif
|
|
<a
|
|
href="{{ route('tools.visit', $tool) }}"
|
|
target="_blank"
|
|
rel="nofollow noopener sponsored"
|
|
class="ml-auto text-sm font-medium text-neutral-900 hover:underline"
|
|
>
|
|
Visit site →
|
|
</a>
|
|
</div>
|
|
</article>
|