@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('assets/favicon/icons/'.localIcon($link->id))}}@else{{getFavIcon($link->id)}}@endif" onerror="this.onerror=null; this.src='{{asset('assets/linkstack/icons/website.svg')}}';">
@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) and $button->name != "vcard")
{{Str::limit($link->link, 75 )}}
{{Str::limit($link->link, 25 )}}
@elseif(!empty($link->link) and $button->name == "vcard")
Download
@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
@if(!empty($link->link))
{{ $link->click_number }} Clicks
@endif
@if(env('ENABLE_BUTTON_EDITOR') === true)
@if($link->button_id == '1' or $link->button_id == '2')
@endif
@endif
@if(file_exists(base_path("assets/favicon/icons/").localIcon($link->id)))
@endif
@endif
@endforeach