@foreach($links as $link)
@php $button = Button::find($link->button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} @endphp
@php if($buttonName == "default email"){$buttonName = "email";} if($buttonName == "default email_alt"){$buttonName = "email_alt";} @endphp
@if($button->name !== 'icon')
@if($button->name == "custom_website")
id))){{url('studio/favicon/icons/'.localIcon($link->id))}}@else{{getFavIcon($link->id)}}@endif">
@elseif($button->name == "space")
@elseif($button->name == "heading")
@elseif($button->name == "text")
@elseif($button->name == "buy me a coffee")
@else
@endif
{{strip_tags($link->title,'')}}
@if(!empty($link->link))
{{Str::limit($link->link, 75 )}}
@endif
{{Str::limit($link->params['text'] ?? null, 150) }}
@if($link->typename == 'video')
@php
$embed = OEmbed::get($link->link);
if ($embed && $embed->hasThumbnail()) {
echo "
";
}
@endphp
@endif
@endif
@endforeach