@extends('layouts.app') @section('content') @if(count(config('setting_fields', [])) ) {!! Form::open(['route' => 'dashboard.core.settings.store']) !!} @foreach(config('setting_fields') as $section => $fields)

{!! $fields['title'] !!}

@foreach($fields['elements'] as $field) @includeIf('dashboard::core.setting.fields.' . $field['type']) @endforeach
@endforeach
{!! Form::submit('حفظ', ['class' => 'btn btn-primary btn-alt-primary']) !!}
{!! Form::close() !!} @endif @endsection