@lang('admin::app.vendor-plans.show.title')

@lang('admin::app.vendor-plans.show.title'): {{ $subscriptionData->name }}

@lang('admin::app.vendor-plans.show.plan-details')

@lang('admin::app.vendor-plans.show.plan-name'): {{ $subscriptionData->name }}
@lang('admin::app.vendor-plans.show.original-price'): ₹{{ number_format($subscriptionData->price, 2) }}
@lang('admin::app.vendor-plans.show.paid-amount'): ₹{{ number_format($subscriptionData->paid_amount, 2) }}
@lang('admin::app.vendor-plans.show.duration'): {{ $subscriptionData->duration }} {{ ucfirst($subscriptionData->duration_type) }}
@lang('admin::app.vendor-plans.show.payment-status'): @php $paymentStatusClass = $subscriptionData->payment_status == 1 ? 'bg-green-100 text-green-800' : 'bg-orange-100 text-orange-800'; $paymentStatusText = $subscriptionData->payment_status == 1 ? 'Paid' : 'Pending'; @endphp {{ $paymentStatusText }}
@if($subscriptionData->description)
@lang('admin::app.vendor-plans.show.description'):

{{ $subscriptionData->description }}

@endif

@lang('admin::app.vendor-plans.show.subscription-info')

@lang('admin::app.vendor-plans.show.transaction-id'): {{ $subscriptionData->transaction_id }}
@lang('admin::app.vendor-plans.show.order-id'): {{ $subscriptionData->order_id }}
@lang('admin::app.vendor-plans.show.subscribed-at'): {{ \Carbon\Carbon::parse($subscriptionData->subscribed_at)->format('M d, Y H:i') }}
@if($subscriptionData->expires_at)
@lang('admin::app.vendor-plans.show.expires-at'): {{ \Carbon\Carbon::parse($subscriptionData->expires_at)->format('M d, Y H:i') }}
@endif
@lang('admin::app.vendor-plans.show.subscription-status'): @php $now = now(); $expiresAt = $subscriptionData->expires_at ? \Carbon\Carbon::parse($subscriptionData->expires_at) : null; $isExpired = $expiresAt && $now->gt($expiresAt); $isPaid = $subscriptionData->payment_status == 1; if (!$isPaid) { $statusClass = 'bg-orange-100 text-orange-800'; $statusText = 'Payment Pending'; } elseif ($isExpired) { $statusClass = 'bg-red-100 text-red-800'; $statusText = 'Expired'; } else { $statusClass = 'bg-green-100 text-green-800'; $statusText = 'Active'; } @endphp {{ $statusText }}