@extends('layouts.master') @section('title', 'Pricing Plans - DigitalStore') @php $plans = \App\Modules\CustomerSubscription\Models\CustomerPlan::where('is_active', true) ->where('show_on_pricing', true) ->orderBy('sort_order') ->orderBy('price') ->get(); @endphp @section('content')
{{-- Header --}}
Pricing Plans

Choose the perfect plan
for your needs

Simple, transparent pricing that grows with you.

{{-- Toggle --}} @if(setting('enable_yearly_billing', true))
Monthly
Annual {{ setting('yearly_discount_text', 'Save up to 30%') }}
@endif
{{-- Plans Grid --}}
@foreach($plans as $plan) @php $planInterval = ($plan->duration_unit === 'year' || $plan->duration_unit === 'years') ? 'yearly' : 'monthly'; @endphp
@if($plan->highlight_plan)
@endif
@if($plan->badge)
{{ $plan->badge }}
@endif

{{ $plan->name }}

{{ $plan->short_description }}

{{ $plan->currency === 'USD' ? '$' : $plan->currency }}{{ number_format($plan->price, 2) }} / {{ $plan->billing_interval }}
    {{-- Dynamic Limits & Permissions --}} {{-- 1. Download Limits --}}
  • @if($plan->limit_type === 'monthly_limit') {{ number_format($plan->monthly_download_limit) }} Monthly @else {{ number_format($plan->total_download_limit) }} Lifetime @endif
  • {{-- 2. Access Type --}}
  • @if($plan->access_type === 'all') All Products @elseif($plan->access_type === 'categories') Specific Categories @else Hand-picked Products @endif
  • {{-- 3. Daily Cap --}} @if($plan->daily_download_limit > 0)
  • Daily cap: {{ $plan->daily_download_limit }}
  • @endif {{-- Feature Matrix Logic --}} @php $planFeatures = is_array($plan->features_list) ? $plan->features_list : json_decode($plan->features_list, true); $planFeatures = $planFeatures ?? []; $customFeatures = array_diff($planFeatures, $globalFeatures ?? []); @endphp {{-- 1. Global Master Features --}} @foreach($globalFeatures ?? [] as $gFeature) @php $hasFeature = in_array($gFeature, $planFeatures); @endphp
  • {{ $gFeature }}
  • @endforeach {{-- 2. Custom One-off Features --}} @foreach($customFeatures as $cFeature)
  • {{ $cFeature }}
  • @endforeach
Get Started

No credit card required

@endforeach
{{-- Bottom Badges --}}
@php $badges = [ ['icon' => '☁️', 'title' => 'Instant Download', 'desc' => 'Get your files instantly after purchase.'], ['icon' => '🛡️', 'title' => 'Secure Payment', 'desc' => 'All payments are encrypted and 100% secure.'], ['icon' => '📜', 'title' => 'Commercial License', 'desc' => 'Use in personal & client projects. No attribution.'], ['icon' => '🔄', 'title' => 'Cancel Anytime', 'desc' => 'Change or cancel your plan anytime. No hassle.'], ]; @endphp @foreach($badges as $b)
{{ $b['icon'] }}

{{ $b['title'] }}

{{ $b['desc'] }}

@endforeach
@endsection