@extends('layouts.admin') @section('title', 'Configuration Management') @section('content')

System Configuration

Manage system settings with versioning and rollback support

@if($currentVersion)
Current Version: {{ $currentVersion->version_name }}
Created by: {{ $currentVersion->creator->name ?? 'System' }} on {{ $currentVersion->created_at->format('M d, Y H:i') }}
@endif @foreach($configurations as $group => $configs)
{{ $groups[$group] ?? ucfirst($group) }}
@csrf
@foreach($configs as $config)
@if($config->type === 'boolean')
value === 'true' ? 'checked' : '' }} data-key="{{ $config->key }}">
@elseif($config->type === 'select' && $config->options) @elseif($config->type === 'json') @else @endif @if($config->description) {{ $config->description }} @endif
@endforeach
@endforeach
@push('scripts') @endpush @endsection