@extends('layouts.app') @section('title', 'Shortlink Details - ' . $shortlink->id) @section('content')

Shortlink Details

Shortlink Information

{{ $shortlink->is_active ? 'Active' : 'Inactive' }}
Shortlink ID:
{{ $shortlink->id }} Visit

Original URL:
{{ $shortlink->original }}

Custom Label:
{{ $shortlink->custom_label ?: 'Not set' }}

Description:
{{ $shortlink->description ?: 'No description' }}

Created:
{{ $shortlink->created_at->format('F d, Y H:i:s') }}

Last Updated:
{{ $shortlink->updated_at->format('F d, Y H:i:s') }}

Owner Information

@if($shortlink->user)
User Avatar
{{ $shortlink->user->name }}

{{ $shortlink->user->email }}

@if($shortlink->user->username){{ '@' . $shortlink->user->username }}@endif

{{ ucfirst($shortlink->user->role) }}

@else

No user associated

@endif

Quick Actions

@csrf @method('PATCH')
@csrf @method('DELETE')

{{ number_format($analytics['total_clicks']) }}

Total Clicks

{{ number_format($analytics['unique_ips']) }}

Unique Visitors

{{ number_format($analytics['clicks_today']) }}

Clicks Today

{{ number_format($analytics['clicks_this_month']) }}

This Month

Click Activity (Last 30 Days)

Top Countries

@if($topCountries->count() > 0) @foreach($topCountries as $country)
{{ $country->country ?: 'Unknown' }} {{ number_format($country->clicks) }}
@endforeach @else

No country data available

@endif

Recent Clicks (Last 20)

@forelse($recentClicks as $click) @empty @endforelse
Date & Time IP Address Country Device/Browser
{{ $click->created_at->format('M d, Y H:i:s') }} {{ $click->ip_address }} @if($click->country) {{ $click->country }} @else Unknown @endif {{ $click->device ?: 'Unknown' }}

No clicks recorded yet.
@endsection @push('styles') @endpush @push('scripts') @endpush