@extends('admin::layouts.content') @section('page_title') {{ __('admin::app.configuration.title') }} @stop @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() @if ($groups = \Illuminate\Support\Arr::get($config->items, request()->route('slug') . '.children.' . request()->route('slug2') . '.children')) @foreach ($groups as $key => $item)
@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
@stop @push('scripts') @endpush