@extends('layouts.admin') @section('title', 'Subscription History') @section('content')

Subscription History

All subscription records in one place.

@forelse($subscriptions as $item) @empty @endforelse
User Plan Start Date End Date Type Status
{{ $item->user->name ?? 'N/A' }}
{{ $item->user->email ?? 'N/A' }}
{{ $item->plan->name ?? 'N/A' }}
{{ $item->plan ? number_format($item->plan->price, 2) : '0.00' }} ৳
{{ $item->start_date ? $item->start_date->format('d M, Y h:i A') : 'N/A' }} {{ $item->end_date ? $item->end_date->format('d M, Y h:i A') : 'N/A' }} @if($item->is_trial) Trial @else Paid @endif @if($item->status === 'active') Active @else Expired @endif
No subscriptions found.
@if($subscriptions->hasPages())
{{ $subscriptions->links() }}
@endif
@endsection