@php use App\Enums\Subscription\SubscriptionPlanKeyEnum; use Illuminate\Support\Str; @endphp @extends('layouts.seller.app', ['page' => $menuSeller['subscriptions']['active'] ?? '', 'sub_page' => $menuSeller['subscriptions']['route']['current']['sub_active'] ?? null]) @section('title', __('labels.current_subscription')) @section('header_data') @php $page_title = __('labels.current_subscription'); $page_pretitle = __('labels.subscriptions'); @endphp @endsection @php $breadcrumbs = [ ['title' => __('labels.home'), 'url' => route('seller.dashboard')], ['title' => __('labels.subscriptions'), 'url' => route('seller.subscription-plans.index')], ['title' => __('labels.current_subscription'), 'url' => ''], ]; $currency = $systemSettings['currencySymbol'] ?? ($subscriptionSettings['currencySymbol'] ?? '$'); @endphp @section('seller-content')
{{ $subscription->plan?->description }}
@php $limitMap =$subscription->snapshot->limits_json ?? []; @endphp| {{ __('labels.configuration') }} | {{ __('labels.limit') }} | {{ __('labels.used') }} | {{ __('labels.remaining') }} |
|---|---|---|---|
| {{ Str::replace('_', ' ', $key) }} | @php $detail = $usageDetails[$key] ?? [ 'limit' => $limitMap[$key] ?? null, 'used' => 0, 'remaining' => null, ]; $limitVal = $detail['limit']; $usedVal = $detail['used'] ?? 0; $remainingVal = $detail['remaining']; @endphp{{ $limitVal === null ? __('labels.unlimited') : (int) $limitVal }} | {{ (int) $usedVal }} | {{ $remainingVal === null ? __('labels.unlimited') : (int) $remainingVal }} |