@extends('admin.layouts.app') @section('title', __('admin.menu.settings')) @section('page-title', __('admin.menu.settings')) @php // Group the flat schema into the tabs shown below, keeping the setting keys. $grouped = collect($schema)->groupBy(fn ($meta) => $meta[0], preserveKeys: true); $groups = ['general', 'contact', 'social', 'app']; @endphp @section('content')
@csrf @method('PUT')
@foreach ($groups as $index => $group)
@foreach ($grouped[$group] ?? [] as $key => $meta) @php $value = $settings[$key] ?? null; @endphp @if ($meta[1] === 'boolean') @elseif ($meta[1] === 'textarea') @else @endif @endforeach
@endforeach
@endsection