1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00

improve thread links

This commit is contained in:
Samuel Štancl 2021-04-09 18:53:27 +02:00
parent 57ab16675e
commit 4f2b5dc999
4 changed files with 19 additions and 6 deletions

View file

@ -42,9 +42,9 @@
<dt class="text-sm text-gray-500">Links</dt>
<dd>
@foreach($links as $link)
<x-link href="{{ $link['url'] }}" target="_blank">
{{ ucfirst($link['name']) }}
@foreach($links as $text => $url)
<x-link href="{{ $url }}" target="_blank">
{{ ucfirst($text) }}
</x-link>
@endforeach
</dd>