@extends('panel.layout.app') @section('title', __('Mobile Subscriptions and Packs')) @section('titlebar_actions', '') @section('content')
@if ($settings_two->liquid_license_type != 'Extended License')

{{ __('To access this page, you should upgrade to Extended License.') }} {{ __('Upgrade License') }}

@else
{{ __('Status') }} {{ __('Name') }} / {{ __('Type') }} {{ __('RC Package Id') }} {{ __('RC Entitlement Id') }} {{ __('RC Apple Id') }} {{ __('RC Google Id') }} {{ __('Actions') }} @foreach ($plans as $entry) {{ $entry->active == 1 ? __('Active') : __('Passive') }} @php $entryType = $entry->type == 'prepaid' ? __('Token Pack') : __('Subscription'); @endphp

{{ $entry->name }} {{ $entry->type == 'prepaid' ? __('Token Pack') : __('Subscription') }}

@php $foundRevenueCatProduct = false; $revenueCatProduct = ''; @endphp @foreach ($entry->gateway_products as $prd) @if ($prd->gateway_code == 'revenuecat') @if ($prd->product_id != null) {{ $prd->product_id }} @php $foundRevenueCatProduct = true; $revenueCatProduct = $prd->product_id; @endphp @else {{ __('Not Set') }} @endif @endif @endforeach @if (!$foundRevenueCatProduct) {{ __('Not Set') }} @endif @php $foundRevenueCatPrice = false; $revenueCatPrice = ''; @endphp @foreach ($entry->gateway_products as $prd) @if ($prd->gateway_code == 'revenuecat') @if ($prd->price_id != null) {{ $prd->price_id }} @php $foundRevenueCatPrice = true; $revenueCatPrice = $prd->price_id; @endphp @else {{ __('Not Set') }} @endif @endif @endforeach @if (!$foundRevenueCatPrice) {{ __('Not Set') }} @endif @php $foundRevenueCatApple = false; $revenueCatApple = ''; @endphp @foreach ($entry->revenuecat_products as $prd) @if ($prd->apple_id != null) {{ $prd->apple_id }} @php $foundRevenueCatApple = true; $revenueCatApple = $prd->apple_id; @endphp @else {{ __('Not Set') }} @endif @endforeach @if (!$foundRevenueCatApple) {{ __('Not Set') }} @endif @php $foundRevenueCatGoogle = false; $revenueCatGoogle = ''; @endphp @foreach ($entry->revenuecat_products as $prd) @if ($prd->google_id != null) {{ $prd->google_id }} @php $foundRevenueCatGoogle = true; $revenueCatGoogle = $prd->google_id; @endphp @else {{ __('Not Set') }} @endif @endforeach @if (!$foundRevenueCatGoogle) {{ __('Not Set') }} @endif @if ($app_is_demo) @else @endif @endforeach
@csrf

{{ __('Update Plan') }}

{{ __('Plan Name') }} :

{{ __('Plan Type') }} :

{{ __('Save') }}

{{ __('Important:') }}

{{ __('In RevenueCat dashboard, create only one instance of offerings and set it as default. Mobile app checks for default offering and searches given package and entitlement ids in there.') }}

{{ __('Also, please do not set both identifiers identical. For instance, you can use _ent and _pac at the end of ids.') }}

@endif
@endsection