@guest
@endguest @auth
@endauth {{-- Top Navigation --}} {{-- Display Profile Picture --}} {{-- cover photo --}} @if ($profile_layout == 'default_cover') {{ $user->firstname . ' ' . $user->lastname }} {{ $user->firstname . ' ' . $user->lastname }} @endif {{-- Cover Only --}} @if ($profile_layout == 'cover_only') {{ $user->firstname . ' ' . $user->lastname }} @endif {{-- circled profile pic --}} @if ($profile_layout == 'default') {{ $user->firstname . ' ' . $user->lastname }} @endif {{-- rounded profile pic --}} @if ($profile_layout == 'rounded') {{ $user->firstname . ' ' . $user->lastname }} @endif {{-- full width profile pic --}} @if ($profile_layout == 'full_width') {{ $user->firstname . ' ' . $user->lastname }} @endif {{--

{{ isset($card_title) ? $card_title : $firstname . ' ' . $lastname }} @if ($user->user_type == 'Gold') @elseif($user->user_type == 'Platinum') @endif

--}} {{-- Display Bio --}} {{-- @if ($bio && $short_bio_enabled == true)

{{ $bio }}

@endif --}} {{-- Display Job Title --}} {{-- @if (!empty($user->job_title) && empty($user->company))

{{ $user->job_title }}

@endif --}} {{-- Display Job Title and company --}} {{-- @if (!empty($user->job_title) && !empty($user->company))

{{ $user->job_title }} @if (!empty($user->company_website)) at {{ $user->company }} @else at {{ $user->company }} @endif

@endif --}} {{-- @if (($user->address || $user->country) && $display_country)

@endif --}}
@if ($reviews_page_title)

{{ $reviews_page_title }}

@endif @if ($reviews) @foreach ($reviews as $review) @php $videoUrl = $review['video_link']; $videoId = null; $videoHash = null; $isVimeo = false; $isInstagram = false; $isTikTok = false; $instagramType = null; // ----------------------------- // YOUTUBE // ----------------------------- if (preg_match('#youtu\.be/([a-zA-Z0-9_-]+)#', $videoUrl, $matches)) { $videoId = $matches[1]; } elseif (preg_match('#youtube\.com/watch\?v=([a-zA-Z0-9_-]+)#', $videoUrl, $matches)) { $videoId = $matches[1]; } elseif (preg_match('#youtube\.com/shorts/([a-zA-Z0-9_-]{11})#', $videoUrl, $matches)) { $videoId = $matches[1]; } // ----------------------------- // VIMEO (any format) // ----------------------------- if (str_contains($videoUrl, 'vimeo.com')) { $isVimeo = true; $clean = preg_replace( ['#https?://(www\.)?vimeo\.com/#', '#https?://player\.vimeo\.com/video/#'], '', $videoUrl, ); $parts = explode('/', $clean); $videoId = $parts[0] ?? null; if (isset($parts[1]) && !str_contains($parts[1], '?')) { $videoHash = $parts[1]; } if (str_contains($videoUrl, '?h=')) { parse_str(parse_url($videoUrl, PHP_URL_QUERY), $query); $videoHash = $query['h'] ?? $videoHash; } } // ----------------------------- // INSTAGRAM – reels, posts, IGTV // ----------------------------- if (str_contains($videoUrl, 'instagram.com')) { if (preg_match('#instagram\.com/(reel|reels|p|tv)/([^/?]+)/?#', $videoUrl, $matches)) { $instagramType = $matches[1] === 'reels' ? 'reel' : $matches[1]; $videoId = $matches[2]; $isInstagram = true; } } // ----------------------------- // TIKTOK // ----------------------------- if (str_contains($videoUrl, 'tiktok.com')) { if (preg_match('#/video/(\d+)#', $videoUrl, $matches)) { $videoId = $matches[1]; $isTikTok = true; } } // ----------------------------- // Aspect ratio control // ----------------------------- $padding = '56.25%'; // default 16:9 if ($isInstagram) { $padding = '130%'; // tall vertical layout } if ($isTikTok) { $padding = '135%'; // taller vertical layout } @endphp
@if ($isVimeo) @elseif ($isInstagram) @elseif ($isTikTok) @else {{-- Default YouTube --}} @endif
@if ($review['review_text'])
{{ $review['review_text'] }}
@endif @if ($review['cta_link'] && $review['cta_text']) @endif @endforeach @endif