@if(Auth::user()->youtube_channel_id)
{{-- Card Channel Terhubung --}}
{{ Auth::user()->youtube_channel_title }}
{{-- Custom URL jika ada --}}
@if(Auth::user()->youtube_custom_url)
@endif
Channel Terhubung
{{-- Channel Info --}}
{{ Auth::user()->youtube_country ?? 'Unknown' }}
Dibuat: {{ Auth::user()->youtube_published_at ? \Carbon\Carbon::parse(Auth::user()->youtube_published_at)->format('M Y') : 'Unknown' }}
{{-- Channel Selector untuk Multiple Channels --}}
@if(session('youtube_channels') && count(session('youtube_channels')) > 1)
@endif
{{ number_format(Auth::user()->youtube_subscriber_count) }}
Subscribers
{{ number_format(Auth::user()->youtube_total_view_count) }}
Total Views
{{ number_format(Auth::user()->youtube_video_count) }}
Jumlah Video
{{-- Additional Stats --}}
@if(Auth::user()->youtube_comment_count)
{{ number_format(Auth::user()->youtube_comment_count) }}
Total Comments
@endif
{{-- Channel Description --}}
@if(Auth::user()->youtube_channel_description)
Deskripsi Channel
{{ Str::limit(Auth::user()->youtube_channel_description, 200) }}
@if(strlen(Auth::user()->youtube_channel_description) > 200)
@endif
@endif
{{-- Channel Status Info --}}
Status: {{ ucfirst(Auth::user()->youtube_privacy_status ?? 'Unknown') }}
{{ Auth::user()->youtube_is_linked ? 'Linked' : 'Not Linked' }}
{{ Auth::user()->youtube_made_for_kids ? 'Made for Kids' : 'Not for Kids' }}
{{-- Info Multiple Channels --}}
@if(session('youtube_channels') && count(session('youtube_channels')) > 1)
Anda memiliki
{{ count(session('youtube_channels')) }} channel YouTube.
Saat ini menampilkan data channel utama.
Lihat semua channel
@endif
{{-- Last Refresh Info --}}
@if(Auth::user()->youtube_last_refresh_at)
Data terakhir diperbarui: {{ Auth::user()->youtube_last_refresh_at->format('d M Y H:i') }}
@endif
{{-- Action Buttons --}}
{{-- Modal untuk menampilkan semua channel --}}
@if(session('youtube_channels') && count(session('youtube_channels')) > 1)
@foreach(session('youtube_channels') as $channel)
{{ $channel['snippet']['title'] }}
Subscribers
{{ number_format($channel['statistics']['subscriberCount'] ?? 0) }}
Views
{{ number_format($channel['statistics']['viewCount'] ?? 0) }}
Videos
{{ number_format($channel['statistics']['videoCount'] ?? 0) }}
@if(isset($channel['snippet']['customUrl']))
{{ $channel['snippet']['customUrl'] }}
@endif
@endforeach
@endif
{{-- Modal untuk deskripsi lengkap --}}
@if(Auth::user()->youtube_channel_description && strlen(Auth::user()->youtube_channel_description) > 200)
{{ Auth::user()->youtube_channel_description }}
@endif
@else
{{-- Card Belum Terhubung --}}
Hubungkan Channel YouTube Anda
Dapatkan insight subscriber, views, dan statistik channel secara otomatis di dashboard KunciLink.
Hubungkan Channel YouTube
@endif
Analytics Real-time
Pantau pertumbuhan subscriber dan statistik view channel Anda secara real-time.
Auto Sync
Data channel otomatis tersinkronisasi dengan dashboard KunciLink.
Keamanan & Privasi
Data channel Anda aman dan hanya dapat diakses oleh Anda.