@extends('front.layouts.app') @section('content') @php $user = $user ?? null; $userRole = $userRole ?? ($user ? $user->role_slug : 'athlete'); $profile = $profile ?? (($userRole === 'team') ? ($user->teamProfile ?? null) : ($user->athleteProfile ?? null)); $location = $location ?? ''; $sportName = $sportName ?? ''; $positionName = $positionName ?? ''; $avatarImage = $avatarImage ?? asset('front/assets/images/user.jpeg'); $coverImage = $coverImage ?? asset('front/assets/images/cover.jpg'); $campaigns = $campaigns ?? collect(); $totalRaised = $totalRaised ?? 0; $activeCampaigns = $activeCampaigns ?? 0; $nftTiers = $nftTiers ?? collect(); $otherUsers = $otherUsers ?? collect(); // Get bio $bio = optional($profile)->athlete_bio ?? optional($profile)->team_bio_tagline ?? 'No bio available'; // Get school/club name $schoolClub = optional($user)->school_club_name ?? optional($profile)->team_club_name ?? optional($profile)->school_club_name ?? 'N/A'; // Get social links $socialLinks = $user->socialLinks ?? collect(); // Get gender icon $genderIcon = ''; if ($userRole === 'athlete' && isset($user->gender)) { $genderIcon = $user->gender == 1 ? asset('front/assets/images/male.svg') : asset('front/assets/images/female.svg'); } $userTypeBadge = ($userRole === 'team') ? asset('front/assets/images/team.png') : asset('front/assets/images/athelete.png'); @endphp
{{ $sportName }}{{ $positionName ? ' - ' . $positionName : '' }}
@if($location){{ $location }}
@endif @if($userRole == 'athlete' && $schoolClub && $schoolClub !== 'N/A'){{ $schoolClub }}
@endif{{ $bio }}
Matches / Events
Wins / Medals
Followers
Total Raised
Active Campaigns
NFTs Minted
{!! \App\Helpers\Helper::price($nftTier->nft_price) !!}
{{ $sold }}/{{ $total }} Sold
Primary branding across all athlete materials and events
Logo placement on uniforms and training gear
1,240 supporters have contributed so far.