@extends('admin.layout') @section('title', 'Shortened URL Management') @section('content')

🔗 Shortened URL Management

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Total Shortened URLs: {{ $shortenedUrls->total() }}

+ Shorten URL

💡 Tip: Gunakan fitur ini untuk membuat link pendek yang mudah dibagikan dengan domain pilihan Anda.

@if($shortenedUrls->isEmpty())

Belum ada shortened URL. Buat yang pertama

@else
@foreach($shortenedUrls as $url) @endforeach
Short URL Long URL Clicks Expires Created Aksi
@if($url->alias) {{ $url->full_short_url }} @else {{ $url->full_short_url }} (short code) @endif {{ substr($url->long_url, 0, 50) }}{{ strlen($url->long_url) > 50 ? '...' : '' }} {{ $url->click_count }} @if($url->expires_at) {{ $url->isExpired() ? '✗ Expired' : $url->expires_at->format('d M Y') }} @else - @endif {{ $url->created_at->format('d M Y') }}
{{-- Copy to clipboard --}} {{-- Edit --}} ✏️ {{-- Delete --}}
@csrf @method('DELETE')
{{-- Pagination --}} @if($shortenedUrls->hasPages())
{{ $shortenedUrls->links() }}
@endif @endif @endsection