PATH:
home
/
rwabteecom
/
project_11
/
resources
/
views
/
dashboard
/
partials
/
Editing: user-page.blade.php
@php $user=currentUserFromUrl(); @endphp @php LaravelLocalization::setLocale($domain->default_link_language) @endphp <!DOCTYPE html> <html lang="en" @if ($domain->default_link_language == 'ar') lang="ar" dir="rtl" @endif> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> {{-- meta_description --}} <title>{{ $domain->meta_title ? $domain->meta_title : $domain->owner->name }}</title> @if ($domain->meta_description) <meta name="description" content="{{ $domain->meta_description }}"> @endif <style> #preloader{ position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: #fff; z-index: 9999; overflow:hidden; display: flex; justify-content: center; align-items: center; } .loader { width: 15px; aspect-ratio: 1; border-radius: 50%; animation: l5 1s infinite linear alternate; } @keyframes l5 { 0% {box-shadow: 20px 0 #FF8A2D, -20px 0 #FF8A2D;background: #FF8A2D } 33% {box-shadow: 20px 0 #FF8A2D, -20px 0 #FF8A2D2;background: #FF8A2D2} 66% {box-shadow: 20px 0 #FF8A2D2,-20px 0 #FF8A2D; background: #FF8A2D2} 100%{box-shadow: 20px 0 #FF8A2D2,-20px 0 #FF8A2D; background: #FF8A2D } } </style> @if ($domain->meta_keywords) <meta name="keywords" content="{{ $domain->meta_keywords }}"> @endif <link rel="icon" href="{{ $domain->owner->profileImage }}" type="image/x-icon"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Alkalami&family=Almarai:wght@300;400;700;800&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cairo:wght@200..1000&family=Changa:wght@200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap" rel="stylesheet"> <link rel="stylesheet" href="{{ asset('dashboard/css/bootstrap-icons.min.css') }}" /> <link rel="stylesheet" href="{{ asset('dashboard/css/github-markdown.min.css') }}" /> <link rel="stylesheet" href="{{ asset('dashboard/css/toastify.min.css') }}" /> @if ($domain->default_link_language == 'ar') <link rel="stylesheet" href="{{ asset('dashboard/css/mdb.rtl.min.css') }}" /> <link rel="stylesheet" href="{{ asset('dashboard/css/main_rtl.css') }}" /> @else <link rel="stylesheet" href="{{ asset('dashboard/css/mdb.min.css') }}" /> <link rel="stylesheet" href="{{ asset('dashboard/css/main.css') }}" /> @endif <link href="{{ route('customStyle', $domain->domain) }}" rel="stylesheet" /> {{-- integrations --}} @if ($domain->google_analytics_gt4_status) <script async src="https://www.googletagmanager.com/gtag/js?id={{ $domain->google_analytics_gt4_id }}"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', '{{ $domain->google_analytics_gt4_id }}'); </script> @endif @if ($domain->google_tag_manager_status) <script> (function(w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', '{{ $domain->google_tag_manager_id }}'); </script> @endif @if ($domain->facebook_pixels_status) <script> ! function(f, b, e, v, n, t, s) { if (f.fbq) return; n = f.fbq = function() { n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments) }; if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = '2.0'; n.queue = []; t = b.createElement(e); t.async = !0; t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s) }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '{{ $domain->facebook_pixels_id }}'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id={{ $domain->facebook_pixels_id }}&ev=PageView&noscript=1" /></noscript> @endif @if ($domain->messanger_status) <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ xfbml: true, version: 'v12.0' }); }; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> @endif @if ($domain->snapchat_pixels_status) <script type="text/javascript"> (function(e, t, n) { if (e.snaptr) return; var a = e.snaptr = function() { a.handleRequest ? a.handleRequest.apply(a, arguments) : a.queue.push(arguments) }; a.queue = []; var s = 'script'; r = t.createElement(s); r.async = !0; r.src = n; var u = t.getElementsByTagName(s)[0]; u.parentNode.insertBefore(r, u); })(window, document, 'https://sc-static.net/scevent.min.js'); snaptr('init', '{{ $domain->snapchat_pixels_id }}'); snaptr('track', 'PAGE_VIEW'); </script> <noscript><img height="1" width="1" style="display:none;" src="https://tr.snapchat.com/cm/i?tc=XXXXXX&cs=1&mc=XXXXXX&at=XXXXXX&src=XXXXXX" /></noscript> @endif </head> <body> @if ($domain->messanger_status) <div class="fb-customerchat" attribution="setup_tool" page_id="{{ $domain->messanger_page_id }}" theme_color="#0084ff"> </div> @endif @if ($domain->google_tag_manager_status) <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ $domain->google_tag_manager_id }}" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> @endif <div id="preloader"> <div class="loader"></div> </div> <div class="senond-preview-iframe"> <div class="custom-container text-center position-relative"> <div class="contenter d-flex flex-column justify-content-between pt-4"> <div> <div class="user-preview-top align-items-center d-flex @if ($domain_theme?->header_layout == 'stacked') flex-column justify-content-center @endif mb-3"> @if (!$domain_theme?->hide_profile_image) <div class="@if ($domain_theme?->header_layout == 'stacked') me-0 mb-3 text-center @else me-3 mb-0 @endif"> <div class="preview-top-img-con mx-auto"> {!! $domain->logo !!} <span class="verify-span"> <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.19399 2.40019C7.07604 2.50692 6.95209 2.60683 6.82274 2.69944C6.59925 2.84944 6.348 2.95294 6.084 3.00544C5.96925 3.02794 5.84925 3.03769 5.60999 3.05644C5.00925 3.10444 4.7085 3.12844 4.458 3.21694C4.17157 3.31807 3.91142 3.48204 3.69663 3.69683C3.48185 3.91161 3.31787 4.17176 3.21675 4.45819C3.12825 4.70869 3.10425 5.00944 3.05625 5.61019C3.04806 5.76901 3.03104 5.92726 3.00525 6.08419C2.95275 6.34819 2.84925 6.59944 2.69925 6.82294C2.634 6.92044 2.556 7.01194 2.4 7.19419C2.00925 7.65319 1.8135 7.88269 1.69875 8.12269C1.434 8.67769 1.434 9.32269 1.69875 9.87769C1.8135 10.1177 2.00925 10.3472 2.4 10.8062C2.556 10.9884 2.634 11.0799 2.69925 11.1774C2.84925 11.4009 2.95275 11.6522 3.00525 11.9162C3.02775 12.0309 3.0375 12.1509 3.05625 12.3902C3.10425 12.9909 3.12825 13.2917 3.21675 13.5422C3.31787 13.8286 3.48185 14.0888 3.69663 14.3036C3.91142 14.5183 4.17157 14.6823 4.458 14.7834C4.7085 14.8719 5.00925 14.8959 5.60999 14.9439C5.84925 14.9627 5.96925 14.9724 6.084 14.9949C6.348 15.0474 6.59925 15.1517 6.82274 15.3009C6.92025 15.3662 7.01174 15.4442 7.19399 15.6002C7.65299 15.9909 7.88249 16.1867 8.1225 16.3014C8.6775 16.5662 9.32249 16.5662 9.87749 16.3014C10.1175 16.1867 10.347 15.9909 10.806 15.6002C10.9882 15.4442 11.0797 15.3662 11.1772 15.3009C11.4007 15.1509 11.652 15.0474 11.916 14.9949C12.0307 14.9724 12.1507 14.9627 12.39 14.9439C12.9907 14.8959 13.2915 14.8719 13.542 14.7834C13.8284 14.6823 14.0886 14.5183 14.3034 14.3036C14.5181 14.0888 14.6821 13.8286 14.7832 13.5422C14.8717 13.2917 14.8957 12.9909 14.9437 12.3902C14.9625 12.1509 14.9722 12.0309 14.9947 11.9162C15.0472 11.6522 15.1515 11.4009 15.3007 11.1774C15.366 11.0799 15.444 10.9884 15.6 10.8062C15.9907 10.3472 16.1865 10.1177 16.3012 9.87769C16.566 9.32269 16.566 8.67769 16.3012 8.12269C16.1865 7.88269 15.9907 7.65319 15.6 7.19419C15.4933 7.07623 15.3933 6.95228 15.3007 6.82294C15.1509 6.59935 15.0469 6.34826 14.9947 6.08419C14.969 5.92726 14.9519 5.76901 14.9437 5.61019C14.8957 5.00944 14.8717 4.70869 14.7832 4.45819C14.6821 4.17176 14.5181 3.91161 14.3034 3.69683C14.0886 3.48204 13.8284 3.31807 13.542 3.21694C13.2915 3.12844 12.9907 3.10444 12.39 3.05644C12.2312 3.04826 12.0729 3.03123 11.916 3.00544C11.6519 2.95331 11.4008 2.8493 11.1772 2.69944C11.0481 2.60664 10.9241 2.50673 10.806 2.40019C10.347 2.00944 10.1175 1.81369 9.87749 1.69894C9.60351 1.56797 9.30368 1.5 9 1.5C8.69631 1.5 8.39648 1.56797 8.1225 1.69894C7.88249 1.81369 7.65299 2.00944 7.19399 2.40019ZM12.2797 7.39744C12.3857 7.28142 12.4429 7.12899 12.4394 6.97188C12.4358 6.81477 12.3718 6.66508 12.2607 6.55396C12.1496 6.44283 11.9999 6.37884 11.8428 6.3753C11.6857 6.37176 11.5333 6.42894 11.4172 6.53494L7.77975 10.1724L6.58275 8.97619C6.46673 8.87019 6.3143 8.81301 6.15719 8.81655C6.00008 8.82009 5.85039 8.88409 5.73926 8.99521C5.62814 9.10633 5.56415 9.25602 5.56061 9.41313C5.55706 9.57025 5.61424 9.72267 5.72024 9.83869L7.34774 11.4662C7.4622 11.5804 7.6173 11.6446 7.779 11.6446C7.94069 11.6446 8.09579 11.5804 8.21024 11.4662L12.2797 7.39744Z" fill="#00B6FF" /> </svg> </span> </div> </div> @endif <div class="@if ($domain_theme?->header_layout == 'stacked') text-center @else text-start @endif"> @if ($domain->site_title && !$domain_theme->hide_profile_title) <p class="preview-name mb-2">{{ $domain->site_title }}</p> @endif @if ($domain->intro_text) <p class="preview-intro mb-1">{{ $domain->intro_text }}</p> @endif @if ($domain->location) <a href="{{ $domain->location_link }}" class="location-lonk"> <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M8.01734 9C7.52288 9 7.03953 8.85338 6.62841 8.57868C6.21729 8.30397 5.89686 7.91353 5.70764 7.45671C5.51842 6.99989 5.46891 6.49723 5.56537 6.01228C5.66183 5.52732 5.89994 5.08187 6.24957 4.73223C6.5992 4.3826 7.04466 4.1445 7.52961 4.04804C8.01456 3.95157 8.51723 4.00108 8.97404 4.1903C9.43086 4.37952 9.82131 4.69995 10.096 5.11108C10.3707 5.5222 10.5173 6.00555 10.5173 6.5C10.5165 7.1628 10.2529 7.79822 9.78423 8.26689C9.31556 8.73556 8.68013 8.99921 8.01734 9ZM8.01734 5C7.72066 5 7.43065 5.08797 7.18398 5.2528C6.93731 5.41762 6.74505 5.65189 6.63152 5.92598C6.51798 6.20007 6.48828 6.50167 6.54616 6.79264C6.60404 7.08361 6.7469 7.35088 6.95667 7.56066C7.16645 7.77044 7.43373 7.9133 7.7247 7.97118C8.01567 8.02906 8.31727 7.99935 8.59136 7.88582C8.86545 7.77229 9.09972 7.58003 9.26454 7.33336C9.42936 7.08668 9.51734 6.79667 9.51734 6.5C9.51694 6.1023 9.35878 5.721 9.07756 5.43978C8.79634 5.15856 8.41504 5.0004 8.01734 5Z" fill="currentColor" /> <path d="M8.01734 15L3.79934 10.0255C3.74073 9.95081 3.68272 9.87564 3.62534 9.8C2.90519 8.8507 2.516 7.69155 2.51734 6.5C2.51734 5.04131 3.0968 3.64236 4.12825 2.61091C5.1597 1.57946 6.55865 1 8.01734 1C9.47603 1 10.875 1.57946 11.9064 2.61091C12.9379 3.64236 13.5173 5.04131 13.5173 6.5C13.5185 7.69098 13.1295 8.84954 12.4098 9.7985L12.4093 9.8C12.4093 9.8 12.2593 9.997 12.2368 10.0235L8.01734 15ZM4.42384 9.1975C4.42384 9.1975 4.54034 9.3515 4.56684 9.3845L8.01734 13.454L11.4723 9.379C11.4943 9.3515 11.6113 9.1965 11.6118 9.196C12.2004 8.42057 12.5185 7.47352 12.5173 6.5C12.5173 5.30653 12.0432 4.16193 11.1993 3.31802C10.3554 2.47411 9.21081 2 8.01734 2C6.82386 2 5.67927 2.47411 4.83536 3.31802C3.99144 4.16193 3.51734 5.30653 3.51734 6.5C3.5161 7.47415 3.83456 8.42179 4.42384 9.1975Z" fill="currentColor" /> </svg> {{ $domain->location }} <svg width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M9.2791 4.09782H7.16627V2.93115H11.2496V7.01449H10.0829V4.94365L7.21644 7.81015L6.3916 6.98532L9.2791 4.09782Z" fill="currentColor" /> <path d="M6.56201 4.06885H3.06201V11.0688H10.062V7.56885H8.89534V9.90218H4.22868V5.23551H6.56201V4.06885Z" fill="currentColor" /> </svg> </a> @endif @if ($domain_theme?->social_icons_position == 'top' && $domain?->socialIcons?->where('status', 1)->count() > 0) @include('dashboard.partials.socials', [ 'domain' => $domain, 'domain_theme' => $domain_theme, ]) @endif </div> </div> {{-- <div class="d-flex align-items-center justify-content-around my-4 following-data"> <div class="preview-followers-con text-center"> <p class="mb-1">{{ $user->followers()->count() }}</p> <span>{{ __('Followers') }}</span> </div> <div class="preview-followers-con text-center"> <p class="mb-1">{{ $user->followings()->count() }}</p> <span>{{ __('Following') }}</span> </div> @if (!auth()->user()?->isFollowing($user)) <form method="post" action="{{ route('dashboard.follow.follow') }}"> @csrf <input name="user_id" value="{{ $user->id }}" hidden /> <button class="follow-btn"> <svg width="13" height="13" class="me-2" viewBox="0 0 13 13" fill="{{ $domain_theme?->button_color }}" xmlns="http://www.w3.org/2000/svg"> <path d="M2.84375 3.45312C2.84375 2.86053 3.07916 2.29221 3.49818 1.87318C3.91721 1.45416 4.48553 1.21875 5.07813 1.21875C5.67072 1.21875 6.23904 1.45416 6.65807 1.87318C7.07709 2.29221 7.3125 2.86053 7.3125 3.45312C7.3125 4.04572 7.07709 4.61404 6.65807 5.03307C6.23904 5.45209 5.67072 5.6875 5.07813 5.6875C4.48553 5.6875 3.91721 5.45209 3.49818 5.03307C3.07916 4.61404 2.84375 4.04572 2.84375 3.45312ZM1.21875 10.3594C1.21875 9.3358 1.62536 8.35416 2.34913 7.63038C3.07291 6.90661 4.05456 6.5 5.07813 6.5C6.1017 6.5 7.08334 6.90661 7.80712 7.63038C8.53089 8.35416 8.9375 9.3358 8.9375 10.3594V10.361L8.93696 10.4255C8.93581 10.4943 8.91716 10.5618 8.88276 10.6215C8.84837 10.6812 8.79936 10.7312 8.74033 10.7667C7.6349 11.4324 6.36852 11.7832 5.07813 11.7812C3.73913 11.7812 2.48571 11.4108 1.41646 10.7667C1.35734 10.7312 1.30822 10.6813 1.27372 10.6216C1.23923 10.5619 1.2205 10.4944 1.21929 10.4255L1.21875 10.3594ZM10.1562 4.0625C10.1562 3.95476 10.1134 3.85142 10.0373 3.77524C9.96108 3.69905 9.85774 3.65625 9.75 3.65625C9.64226 3.65625 9.53892 3.69905 9.46274 3.77524C9.38655 3.85142 9.34375 3.95476 9.34375 4.0625V5.28125H8.125C8.01726 5.28125 7.91393 5.32405 7.83774 5.40024C7.76155 5.47642 7.71875 5.57976 7.71875 5.6875C7.71875 5.79524 7.76155 5.89858 7.83774 5.97476C7.91393 6.05095 8.01726 6.09375 8.125 6.09375H9.34375V7.3125C9.34375 7.42024 9.38655 7.52358 9.46274 7.59976C9.53892 7.67595 9.64226 7.71875 9.75 7.71875C9.85774 7.71875 9.96108 7.67595 10.0373 7.59976C10.1134 7.52358 10.1562 7.42024 10.1562 7.3125V6.09375H11.375C11.4827 6.09375 11.5861 6.05095 11.6623 5.97476C11.7384 5.89858 11.7812 5.79524 11.7812 5.6875C11.7812 5.57976 11.7384 5.47642 11.6623 5.40024C11.5861 5.32405 11.4827 5.28125 11.375 5.28125H10.1562V4.0625Z" /> </svg> {{ __('Follow') }} </button> </form> @elseif(auth()->user()?->isFollowing($user)) <form method="post" action="{{ route('dashboard.follow.unfollow') }}"> @csrf <input name="user_id" value="{{ $user->id }}" hidden /> <button class="follow-btn"> <svg width="13" height="13" class="me-2" viewBox="0 0 13 13" fill="{{ $domain_theme->button_color }}" xmlns="http://www.w3.org/2000/svg"> <path d="M2.84375 3.45312C2.84375 2.86053 3.07916 2.29221 3.49818 1.87318C3.91721 1.45416 4.48553 1.21875 5.07813 1.21875C5.67072 1.21875 6.23904 1.45416 6.65807 1.87318C7.07709 2.29221 7.3125 2.86053 7.3125 3.45312C7.3125 4.04572 7.07709 4.61404 6.65807 5.03307C6.23904 5.45209 5.67072 5.6875 5.07813 5.6875C4.48553 5.6875 3.91721 5.45209 3.49818 5.03307C3.07916 4.61404 2.84375 4.04572 2.84375 3.45312ZM1.21875 10.3594C1.21875 9.3358 1.62536 8.35416 2.34913 7.63038C3.07291 6.90661 4.05456 6.5 5.07813 6.5C6.1017 6.5 7.08334 6.90661 7.80712 7.63038C8.53089 8.35416 8.9375 9.3358 8.9375 10.3594V10.361L8.93696 10.4255C8.93581 10.4943 8.91716 10.5618 8.88276 10.6215C8.84837 10.6812 8.79936 10.7312 8.74033 10.7667C7.6349 11.4324 6.36852 11.7832 5.07813 11.7812C3.73913 11.7812 2.48571 11.4108 1.41646 10.7667C1.35734 10.7312 1.30822 10.6813 1.27372 10.6216C1.23923 10.5619 1.2205 10.4944 1.21929 10.4255L1.21875 10.3594ZM10.1562 4.0625C10.1562 3.95476 10.1134 3.85142 10.0373 3.77524C9.96108 3.69905 9.85774 3.65625 9.75 3.65625C9.64226 3.65625 9.53892 3.69905 9.46274 3.77524C9.38655 3.85142 9.34375 3.95476 9.34375 4.0625V5.28125H8.125C8.01726 5.28125 7.91393 5.32405 7.83774 5.40024C7.76155 5.47642 7.71875 5.57976 7.71875 5.6875C7.71875 5.79524 7.76155 5.89858 7.83774 5.97476C7.91393 6.05095 8.01726 6.09375 8.125 6.09375H9.34375V7.3125C9.34375 7.42024 9.38655 7.52358 9.46274 7.59976C9.53892 7.67595 9.64226 7.71875 9.75 7.71875C9.85774 7.71875 9.96108 7.67595 10.0373 7.59976C10.1134 7.52358 10.1562 7.42024 10.1562 7.3125V6.09375H11.375C11.4827 6.09375 11.5861 6.05095 11.6623 5.97476C11.7384 5.89858 11.7812 5.79524 11.7812 5.6875C11.7812 5.57976 11.7384 5.47642 11.6623 5.40024C11.5861 5.32405 11.4827 5.28125 11.375 5.28125H10.1562V4.0625Z" /> </svg> {{ __('Unfollow') }} </button> </form> @endif </div> --}} <div class="links-container d-flex flex-wrap"> @foreach ($domain->links->where('link_visibility', 1) as $link) @if ($link->link_type == 'link' && $link->title && $link->link) <div class="p-1 @if ($domain_theme->layout == 'grid') col-6 @else col-12 @endif"> <a @if ($link->lock_link) link-id={{ $link->id }} domain-domain={{ $domain->domain }} @endif class="d-flex align-items-center h-100 @if ($domain_theme->layout == 'grid') grid-link-con flex-column @else full-width-link-con @endif btn-container @if ($link->lock_link) locked-link @endif" @if (!$link->lock_link) target="_blank" href="{{ route('redirectLink', [$domain->domain, $link->uuid]) }}" @endif> @if ($link->image) <div class="preview-link-icon d-flex align-items-center justify-content-center"> <img src="{{ $link->image }}" class="img-fluid" alt=""> </div> @endif <div class="d-flex align-items-center justify-content-between p-1 link-preview-data custom-button {{ $link->link_animation }} @if ($link->image) has-img @endif"> <p class="preview-link-name mb-0 w-100 @if ($domain_theme->layout == 'grid') text-start @else text-center @endif"> {{ $link->title }} </p> @if ($link->lock_link) <span class="lock-link me-0"> <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.625 6.25V5C10.625 3.27411 9.22589 1.875 7.5 1.875C5.77411 1.875 4.375 3.27411 4.375 5V6.25M7.5 9.0625V10.3125M5.5 13.125H9.5C10.5501 13.125 11.0751 13.125 11.4762 12.9206C11.829 12.7409 12.1159 12.454 12.2956 12.1012C12.5 11.7001 12.5 11.1751 12.5 10.125V9.25C12.5 8.1999 12.5 7.67485 12.2956 7.27377C12.1159 6.92096 11.829 6.63413 11.4762 6.45436C11.0751 6.25 10.5501 6.25 9.5 6.25H5.5C4.4499 6.25 3.92485 6.25 3.52377 6.45436C3.17096 6.63413 2.88413 6.92096 2.70436 7.27377C2.5 7.67485 2.5 8.1999 2.5 9.25V10.125C2.5 11.1751 2.5 11.7001 2.70436 12.1012C2.88413 12.454 3.17096 12.7409 3.52377 12.9206C3.92485 13.125 4.4499 13.125 5.5 13.125Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </span> @endif </div> </a> </div> @elseif ($link->link_type == 'divider') <div class="col-12 divider my-2 {{ $link->divider_height }}" style="background: {{ $link->divider_color }}"> </div> @elseif ($link->link_type == 'text') <div class="col-12 marked-content-data text-start my-2">{{ $link->title }}</div> @elseif ($link->link_type == 'title') <div class="col-12 fw-bold my-2"> {{ $link->title }} </div> @endif @endforeach </div> @if ($domain_theme?->social_icons_position == 'bottom' && $domain?->socialIcons?->where('status', 1)->count() > 0) @include('dashboard.partials.socials', [ 'domain' => $domain, 'domain_theme' => $domain_theme, ]) @endif </div> <a href="{{route('index')}}" target="_blank" class="preview-bottom text-center my-2"> <img src="{{ gs('logo') }}" class="img-fluid" alt="" style="max-width:108px"> </a> </div> </div> </div> <div class="modal fade passwordModal" id="passwordModal" aria-labelledby="exampleModalLabel" tabindex="-1" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable"> <div class="modal-content"> <div class="modal-header justify-content-end"> <button type="button" data-mdb-ripple-init data-mdb-dismiss="modal" aria-label="Close" class="close-btn"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17 7L7 17M7 7L17 17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> </button> </div> <div class="modal-body text-center py-0"> <h4>{{ __('Enter Password') }}</h4> <input type="password" class="formInput px-3 text-center" id="link_password" /> <button class="main-btn px-3 py-2 my-3 mx-auto" id="locked_link_check"> {{ __('Continue') }} </button> </div> <div class="loading-screen d-none"> <div class="spinner-border"></div> </div> </div> </div> </div> <script src="{{ asset('dashboard/js/jquery-3.6.0.min.js') }}"></script> <script src="{{ asset('dashboard/js/mdb.umd.min.js') }}"></script> <script src="{{ asset('dashboard/js/marked.min.js') }}"></script> <script src="{{ asset('dashboard/js/toastify-js.js') }}"></script> <script> $(function() { $('.marked-content-data').each(function() { var text = $(this).text().trim(); var html = marked.parse(text); $(this).html(html); }); $("body").on('click', '.locked-link', function() { let linkId = $(this).attr('link-id'); let domain = $(this).attr('domain-domain'); $('#link_password').val('') $('#locked_link_check').attr('link-id', linkId) $('#locked_link_check').attr('domain', linkId) new mdb.Modal($("#passwordModal")).show(); }) $("body").on('click', '#locked_link_check', function() { let linkId = $(this).attr('link-id'); let domain = $(this).attr('domain'); let password = $('#link_password').val() if (password.length > 0) { $.ajax({ url: "{{ route('checkLinkPassword', ['', '']) }}" + '/' + domain + '/' + linkId, method: "GET", data: { password: password, }, // processData: false, // contentType: false, success: function(response) { $('#link_password').val('') $("#passwordModal").modal('hide'); window.open(response, '_blank'); }, error: function(response) { Toastify({ text: response.responseJSON.message, duration: 3000, close: true, className: "add-success", style: { background: "#dc3545", } }).showToast(); } }); } }) }); </script> <script> $(window).on('load', function() { // When the window is fully loaded, fade out the preloader $('#preloader').fadeOut('slow'); }); </script> </body> </html>
SAVE
CANCEL