@extends('adminlte::page') @section('title', 'My Links - KunciLink') @section('content_header')

My Links

@stop @section('css') @stop @section('content') {{-- Profile Visibility Status Banner --}} @if(Auth::user()->isProfilePrivate())
Profil Privat Aktif

Profil Anda saat ini bersifat privat dan tidak dapat diakses oleh publik. Klik di sini untuk mengubah pengaturan visibilitas profil.

@else
Profil Publik Aktif

Profil Anda dapat diakses oleh semua orang. Anda dapat membagikan link profil Anda ke sosial media.

@endif {{-- Statistics Cards --}}
{{ $stats['total_shortlinks'] }}
Total Shortlinks
{{ $stats['total_clicks'] }}
Total Klik
{{ $stats['custom_labels'] }}
Custom Labels
{{ $stats['recent_7_days'] }}
7 Hari Terakhir
{{-- Interactive DataTable --}}

Daftar Shortlinks

@foreach ($shortlinks as $shortlink) @php parse_str(ltrim($shortlink->original, '?'), $params); $originalUrl = null; // Coba berbagai parameter yang mungkin ada if (isset($params['web1'])) { $originalUrl = urldecode(base64_decode(urldecode($params['web1']))); } elseif (isset($params['lnk1'])) { $originalUrl = urldecode(base64_decode(urldecode($params['lnk1']))); } elseif (isset($params['yt1'])) { $originalUrl = urldecode(base64_decode(urldecode($params['yt1']))); } $decodedWeb1 = $originalUrl ?: '-'; @endphp @endforeach
Nama/Tombol URL Asli Short Code URL Singkat Klik Total Visit Conversion Rate Tanggal Dibuat Aksi
@if($shortlink->custom_label) {{ $shortlink->custom_label }} @else Lihat @endif Statistik {{ $decodedWeb1 }} {{ $shortlink->id }} {{ url($shortlink->id) }} {{ $shortlink->real_clicks ?? 0 }} {{ $shortlink->real_visits ?? 0 }} {{ $shortlink->conversion_rate }}% {{ $shortlink->created_at ? $shortlink->created_at->format('d M Y H:i') : 'N/A' }}
{{-- Delete Form (Hidden) --}} @stop @section('js') @stop