@extends('admin::layouts.content') @section('page_title') {{ __('admin::app.configuration.title') }} @endsection @section('content')
@php $locale = request()->get('locale') ?: app()->getLocale(); $channel = request()->get('channel') ?: core()->getDefaultChannelCode(); $channelLocales = app('Webkul\Core\Repositories\ChannelRepository')->findOneByField('code', $channel)->locales; if (! $channelLocales->contains('code', $locale)) { $locale = config('app.fallback_locale'); } @endphp
@csrf() {{-- Extension Assignment --}} @php $notAllowedExtensionKeywords = []; @endphp @if ( company()->getSuperConfigData('subscription.payment.module.status') ) @php $notAllowedExtensionKeywords = app('Webkul\SAASSubscription\Helpers\Subscription')->validateAllowExtensions(); @endphp @endif @if ($groups = \Illuminate\Support\Arr::get($config->items, request()->route('slug') . '.children.' . request()->route('slug2') . '.children')) @foreach ($groups as $key => $item) {{-- Extension Assignment --}} @if (company()->getSuperConfigData('subscription.payment.module.status') && in_array($key, $notAllowedExtensionKeywords)) @php continue; @endphp @endif @if ( (str_contains($item['name'], 'payonline') or str_contains($item['name'], 'Fawry') or str_contains($item['name'], 'Valu') or str_contains($item['name'], 'Vodaphone') or str_contains($item['name'], 'Tabby') or str_contains($item['name'], 'Moyasar')) and ($subscription_days_left < 0 or ($purchasedPlan->code != 'premium' and $purchasedPlan->code != 'plus'))) @php continue; @endphp @endif
@foreach ($item['fields'] as $field) @include ('admin::configuration.field-type', ['field' => $field]) @php ($hint = $field['title'] . '-hint') @if ($hint !== __($hint)) {{ __($hint) }} @endif @endforeach
@endforeach @endif
@endsection @push('scripts') @endpush