{{-- resources/views/configuration/subscription-plans.blade.php --}} @php /** * File : subscription-plans.blade.php * Redesign: Left sidebar menu with animated full-page content per selection. * Design-only update (no logic or conditions changed). * ----------------------------------------------------------------------------- */ @endphp @extends('layouts.app', ['title' => ($pageTitle ?? 'Subscription Plans')]) @section('content') @include('users.partials.header', [ 'title' => __tr('Subscription Plans') . ' ' . auth()->user()->name, 'description' => '', 'class' => 'col-lg-12' ])
{{-- Left Sidebar Menu --}} {{-- Right Content Area --}}
{{-- Free Plan Pane --}}
{{ __tr('Free') }}
{{ __tr('Free Plan Configurations') }}
@php $freeFeatures = $freePlan['features']; @endphp
{{ __tr('Feature Limits') }}
@if (!__isEmpty($freeFeatures)) {{-- ✅ Single Card for ALL Switch (checkbox) Features --}} {{-- ✅ Separate Card for Each Input Feature --}} @foreach ($freeFeatures as $featureKey => $feature) @php $structureFeature = $freePlanStructure['features'][$featureKey]; @endphp @if (!isset($structureFeature['type']) || $structureFeature['type'] != 'switch')
@endif @endforeach
@foreach ($freeFeatures as $featureKey => $feature) @php $structureFeature = $freePlanStructure['features'][$featureKey]; @endphp
@if (isset($structureFeature['type']) && $structureFeature['type'] == 'switch')
@endif
@endforeach
@endif
{{-- Paid Plans Panes --}} @if (!__isEmpty($planStructure)) @foreach ($planStructure as $planKey => $plan) @php $savedPlan = $planDetails[$planKey]; $planId = $plan['id']; $features = $plan['features']; @endphp
#{{ $planId }}
{{ __tr('Plan Configurations') }}
{{ __tr('Feature Limits') }}
@if (!__isEmpty($features)) {{-- ✅ Separate Card for Each Input Feature --}} @foreach ($features as $featureKey => $feature) @php $structureFeature = $feature; $feature = $savedPlan['features'][$featureKey]; @endphp @if (!isset($structureFeature['type']) || $structureFeature['type'] != 'switch')
@endif @endforeach {{-- ✅ Single Card for ALL Switch (checkbox) Features --}}
{{-- ✅ Single Card for ALL Switch (checkbox) Features --}}
@foreach ($features as $featureKey => $feature) @php $structureFeature = $feature; $feature = $savedPlan['features'][$featureKey]; @endphp
@if (isset($structureFeature['type']) && $structureFeature['type'] == 'switch')
@endif
@endforeach
@endif
{{ __tr('Charges') }}
@if (!__isEmpty($plan['charges']))
@foreach ($plan['charges'] as $itemKey => $itemValue) @php $itemValue = $planDetails[$planKey]['charges'][$itemKey]; @endphp
{{ $itemKey }}

{{ getCurrencySymbol() }} {{ getCurrency() }}
@endforeach
@endif
@endforeach @endif
@push('scripts') @endpush @endsection