@extends('layouts.vendor') @section('title', 'Packages & Subscription') @section('content')
{{-- Header --}}

Packages & Subscription

Choose a plan to boost your store visibility

Purchase History
{{-- Current Subscription Status --}} @if($currentPurchase)

Current Plan

{{ $currentPurchase->package->name }}

Expires: {{ $currentPurchase->expires_at->format('M d, Y') }} @if($currentPurchase->expires_at->isPast()) Expired @elseif($currentPurchase->expires_at->diffInDays() <= 7) Expiring Soon @else Active @endif

Product Limit

{{ auth()->user()->currentPackage->product_limit == 0 ? 'Unlimited' : auth()->user()->currentPackage->product_limit }}

Products Listed

{{ auth()->user()->product_count }}

@if(auth()->user()->currentPackage->product_limit > 0)
Product Usage {{ auth()->user()->product_count }} / {{ auth()->user()->currentPackage->product_limit }}
@endif
@else

No Active Subscription

You need an active package to list products. Choose a plan below to get started.

@endif {{-- Available Packages --}}

Available Plans

@foreach($packages as $package)
@if($package->is_featured)
FEATURED
@endif
@if($package->image_url) {{ $package->name }} @endif

{{ $package->name }}

{{ $package->description }}

${{ number_format($package->price, 2) }} /{{ $package->duration_days }} days
  • {{ $package->product_limit == 0 ? 'Unlimited' : $package->product_limit }} products
  • @if(is_array($package->features)) @foreach($package->features as $feature)
  • {{ $feature }}
  • @endforeach @endif
@if($currentPurchase && $currentPurchase->package_id == $package->id && $currentPurchase->isActive()) @else @endif
@endforeach
{{-- Purchase Modal --}} @endsection