Gói dịch vụ

Quản lý và tạo gói dịch vụ cho người dùng

{{--

Tạo gói dịch vụ mới

{{ $this->form }}
--}}

Tổng quan gói dịch vụ

@foreach($this->getPlans() as $planKey => $plan)

{{ $plan['name'] }}

{{ number_format($plan['price_monthly'], 0, ',', '.') }} VND /tháng
{{ number_format($plan['price_yearly'], 0, ',', '.') }} VND /năm

{{ $plan['description'] }}

Tính năng:
    @foreach($plan['features'] as $feature)
  • {{$feature}}
  • @endforeach
@endforeach

Gói dịch vụ đang hoạt động

@forelse($this->getActiveSubscriptions() as $subscription) @empty @endforelse
Người dùng Gói Chu kỳ Giá Hết hạn Còn lại
{{ $subscription->user->name }} {{ $this->getPlans()[$subscription->plan]['name'] ?? $subscription->plan }} {{ $subscription->billing_cycle === 'yearly' ? 'Hàng năm' : 'Hàng tháng' }} {{ number_format($subscription->price, 0, ',', '.') }} VND {{ $subscription->expires_at ? $subscription->expires_at->format('d/m/Y') : '-' }} {{ $subscription->getRemainingDays() }} ngày
Không có gói dịch vụ nào đang hoạt động