@extends('superadmin.layouts.app') @section('title', 'Shortlink Management') @section('content')

Shortlink Management

{{ number_format($stats['total']) }}

Total Shortlinks

{{ number_format($stats['today']) }}

Created Today

{{ number_format($stats['this_week']) }}

This Week

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

Total Clicks

This Month {{ number_format($stats['this_month']) }}
Quick Stats: Total of {{ number_format($stats['total']) }} shortlinks with {{ number_format($stats['total_clicks']) }} total clicks. {{ number_format($stats['today']) }} new shortlinks created today.
Avg Clicks {{ $stats['avg_clicks_per_shortlink'] }}

Filter & Search

Shortlinks ({{ $shortlinks->total() }} total)

@csrf @forelse($shortlinks as $shortlink) @empty @endforelse
ID Original URL Custom Label User Clicks Status Created Actions
{{ $shortlink->id }}
{{ $shortlink->original }}
{{ $shortlink->custom_label ?: '-' }} @if($shortlink->user) {{ $shortlink->user->name }}
{{ $shortlink->user->email }}
@else No User @endif
{{ number_format($shortlink->clicks) }} @if($shortlink->is_active) Active @else Inactive @endif {{ $shortlink->created_at->format('M d, Y') }}
@csrf @method('PATCH')
@csrf @method('DELETE')

No shortlinks found.
@if($shortlinks->hasPages()) @endif
@endsection @push('styles') @endpush @push('scripts') @endpush