@extends('backend.subscription.layout') @section('title', __('User Subscriptions')) @section('sub_title', __('User Subscriptions')) @section('sub_icon', 'people') @section('sub_subtitle', __('View, filter, and manage all user subscription records.')) @section('sub_action') @lang('Transactions') @endsection @section('sub_content') {{-- Filter --}}
@if(request()->hasAny(['search','plan_id','status','date'])) @lang('Reset') @endif
{{-- Table --}}
@forelse($subscriptions as $sub) @empty @endforelse
# @lang('User') @lang('Plan') @lang('Status') @lang('Period') @lang('Amount') @lang('Subscribed') @lang('Actions')
{{ $sub->id }}
{{ $sub->user->name }}
{{ $sub->plan->name }}
{{ $sub->billing_cycle?->label() ?? __('Custom') }}
{{ $sub->status->label() }} @if($sub->current_period_end)
{{ __('Ends') }}: {{ $sub->current_period_end->format('d M Y') }}
@if($sub->isActive())
{{ $sub->daysRemaining() }} @lang('days left')
@endif @elseif($sub->billing_cycle?->isLifetime()) @lang('Lifetime') @else — @endif
{{ $sub->currency_code }} {{ number_format($sub->amount_paid,siteDecimalPlaces()) }} {{ $sub->created_at->format('d M Y') }} @lang('View')
@if($subscriptions->hasPages()) @endif
@endsection