@extends('layouts.sidebar') @section('content') @push('sidebar-stylesheets') @endpush @include('components.favicon') @include('components.favicon-extension')

{{__('messages.My Links')}} {{__('messages.Add new Link')}}

{{--
10 | 20 | 30 | all
--}}
    {!! $links ?? ''->links() !!}
@if(count($links) > 3){{__('messages.Add new link')}}@endif

{{__('messages.Preview')}}


{{__('messages.Preview')}}


{{__('messages.Page Icons')}}

@csrf
@php function iconLink($icon){ $iconLink = DB::table('links') ->where('user_id', Auth::id()) ->where('title', $icon) ->where('button_id', 94) ->value('link'); if (is_null($iconLink)){ return false; } else { return $iconLink;}} function searchIcon($icon) {$iconId = DB::table('links') ->where('user_id', Auth::id()) ->where('title', $icon) ->where('button_id', 94) ->value('id'); if(is_null($iconId)){return false;}else{return $iconId;}} function iconclicks($icon){ $iconClicks = searchIcon($icon); $iconClicks = DB::table('links')->where('id', $iconClicks)->value('click_number'); if (is_null($iconClicks)){return 0;} else {return $iconClicks;}} function icon($name, $label) { echo '
'.__('messages.Clicks').': '.iconclicks($name).'
'.(searchIcon($name) != NULL ? '' : '').'
'; } @endphp {!!icon('mastodon', 'Mastodon')!!} {!!icon('instagram', 'Instagram')!!} {!!icon('twitter', 'Twitter')!!} {!!icon('facebook', 'Facebook')!!} {!!icon('github', 'GitHub')!!} {!!icon('twitch', 'Twitch')!!} {!!icon('linkedin', 'LinkedIn')!!} {!!icon('tiktok', 'TikTok')!!} {!!icon('discord', 'Discord')!!} {!!icon('youtube', 'YouTube')!!} {!!icon('snapchat', 'Snapchat')!!} {!!icon('reddit', 'Reddit')!!} {!!icon('pinterest', 'Pinterest')!!} {{-- {!!icon('telegram', 'Telegram')!!} {!!icon('whatsapp', 'WhatsApp')!!} --}}
@endsection