@extends('admin.layouts.app') @section('content')
@csrf

{{ __('siteconfig.pagetitle') }}

@php $i = 0; @endphp @foreach (config('siteconfig') as $k => $config_group) @php $showfirst = false; @endphp @if ($i == 0) @php $showfirst = true; @endphp @endif @if ($errors->any()) @php $showfirst = false; @endphp @endif @if ($config_group['module'] != $module) @continue @endif @if ($config_group['module'] != $module) @continue @endif
@php $i++; $is_error = false; $fileds = collect($config_group['inputs'])->pluck('name')->flatten()->all(); foreach ($fileds as $field): if ($errors->has($field)): $is_error = true; endif; endforeach; @endphp
@foreach ($config_group['inputs'] as $input) @includeIf('admin.modules.siteconfig.fields.' . $input['type']) @endforeach
@endforeach
@endsection