@extends('admin.layout') @section('title', 'Quản lý Token Sets') @section('greeting', 'QUẢN LÝ TOKEN SETS') @section('subtitle', 'Quản lý danh sách token Apple cho kích hoạt Gold') @section('content')
{{-- Stats --}}
{{ $stats['total'] }}
Tổng số
{{ $stats['active'] }}
Đang active
{{ $stats['sandbox'] }}
Sandbox
{{ $stats['production'] }}
Production
{{ number_format($stats['total_uses']) }}
Tổng lượt dùng
{{-- Actions --}}
{{-- Table --}}
@forelse($tokenSets as $token) @empty @endforelse
ID Tên Loại Trạng thái Sử dụng Cooldown Cập nhật Thao tác
#{{ $token->id }}
{{ $token->name }}
@if($token->expires_date)
Mua: {{ $token->purchase_date }} HSD: {{ $token->expires_date }} {{ $token->is_expired ? '(Hết hạn)' : '' }}
@endif
{{ substr($token->fetch_token, 0, 50) }}...
@if($token->is_sandbox) Sandbox @else Production @endif @if($token->is_active) Active @else Inactive @endif
{{ $token->use_count }}@if($token->max_uses > 0)/{{ $token->max_uses }}@endif
@if($token->max_uses > 0) @php $percent = min(100, ($token->use_count / $token->max_uses) * 100); $barClass = $percent > 90 ? 'danger' : ($percent > 70 ? 'warning' : ''); @endphp
@endif
{{ $token->cooldown_seconds }}s {{ $token->updated_at ? \Carbon\Carbon::parse($token->updated_at)->diffForHumans() : '-' }}
@csrf
@csrf
@csrf @method('DELETE')
Chưa có token set nào
@if($tokenSets->hasPages())
{{ $tokenSets->links() }}
@endif
{{-- Add/Edit Modal --}}

Thêm Token Set

@csrf
{{-- View Detail Modal --}}

Chi tiết Token Set

{{-- Import Modal --}}

Import Token từ file

@csrf
Chỉ hỗ trợ tải lên trực tiếp file Api.txt
@endsection