@php $decimals = (int) setting('site_decimal', 2); $visibilityValue = (string) old('visibility', $package->visibility ?? 'PUBLIC'); $billingTypeValue = (string) old('billing_type', $package->billing_type ?? 'FIXED'); $appliesToValue = (string) old('applies_to', $package->applies_to ?? 'BOTH'); $featuresValue = (array) old('features', $package->features ?? []); $allowedCategoriesValue = (array) old('allowed_categories', $package->allowed_categories ?? []); $baseCurrency = (string) (siteCurrency('code') ?: config('app.default_currency')); $baseCurrency = strtoupper(trim($baseCurrency)); $submitLabel = (string) ($submitLabel ?? __('Save')); @endphp @foreach($featuresValue as $featureKey => $featureEnabled) @if((bool) $featureEnabled) @endif @endforeach @foreach($allowedCategoriesValue as $category) @endforeach
@lang('Plan')
@lang('Name and visibility')
@error('name')
{{ $message }}
@enderror
@error('visibility')
{{ $message }}
@enderror
@lang('Pricing')
@lang('Billing model and amount')
@error('billing_type')
{{ $message }}
@enderror
@error('price')
{{ $message }}
@enderror
@error('daily_price')
{{ $message }}
@enderror
@error('per_trade_fee')
{{ $message }}
@enderror
@lang('Duration')
@lang('Promotion window')
@error('duration_value')
{{ $message }}
@enderror @error('duration_unit')
{{ $message }}
@enderror
@lang('Scope')
@lang('Audience and status')
@error('applies_to')
{{ $message }}
@enderror
exists ? (int) $package->status : 1) ? 'checked' : '' }}>
@lang('Cancel')
@push('scripts') @include('backend.p2p.promotion_plans.partials._plan_form_scripts') @endpush