@extends('frontend.layouts.user.index') @section('title', __('Subscription History')) @push('styles') @endpush @section('content')
{{ __('View Plans') }} {{ __('Current') }}
@if($subscriptions->isEmpty()) @else
  • {{ __('Plan') }}
  • {{ __('Status') }}
  • {{ __('Amount') }}
  • {{ __('Period') }}
  • {{ __('Subscribed') }}
@foreach($subscriptions as $sub)
  • {{ $sub->plan->name }}
    {{ $sub->billing_cycle?->label() ?? __('Custom') }}
  • {{ $sub->status->label() }}
  • {{ $sub->currency_code }} {{ number_format($sub->amount_paid,siteDecimalPlaces()) }}
  • @if($sub->current_period_end) {{ __('Ends') }}: {{ $sub->current_period_end->format('d M Y') }} @elseif($sub->billing_cycle?->isLifetime()) {{ __('Lifetime') }} @else - @endif
  • {{ $sub->created_at->format('d M Y') }}
@endforeach
@endif @if($subscriptions->hasPages())
{{ $subscriptions->links() }}
@endif
@endsection