@extends('layouts.admin') @section('title', 'Quản lý Card Month') @section('styles') @endsection @section('content')
📊
{{ number_format($stats['total_purchases']) }}
Tổng thẻ tháng
{{ number_format($stats['active_cards']) }}
Đang hoạt động
{{ number_format($stats['expired_cards']) }}
Đã hết hạn
💰
{{ number_format($stats['total_revenue']) }}
Tổng doanh thu (coin)
📈
{{ number_format($stats['monthly_revenue']) }}
Doanh thu tháng này

Tạo thẻ tháng mới

@csrf
@forelse($cardMonthPurchases as $purchase) @empty @endforelse
ID Người dùng Nhân vật Gói thẻ Coin/ngày Ngày tạo Hết hạn Tiến độ Trạng thái Thao tác
#{{ $purchase->id }}
{{ $purchase->package_name }}
{{ $purchase->duration_days }} ngày
{{ number_format($purchase->daily_reward_coins) }}
{{ date('d/m/Y', strtotime($purchase->created_at)) }}
{{ date('H:i', strtotime($purchase->created_at)) }}
{{ date('d/m/Y', strtotime($purchase->expires_at)) }}
{{ date('H:i', strtotime($purchase->expires_at)) }}
{{ $purchase->days_claimed }}/{{ $purchase->duration_days }}
@php $isActive = $purchase->status === 'active' && strtotime($purchase->expires_at) > time(); $isExpired = strtotime($purchase->expires_at) <= time(); @endphp @if($isActive) Hoạt động @elseif($isExpired) Hết hạn @else {{ ucfirst($purchase->status) }} @endif
@if($isActive) @endif
📭
Không có dữ liệu thẻ tháng
@if($cardMonthPurchases->hasPages())
{{ $cardMonthPurchases->appends(request()->query())->links() }}
@endif
@endsection