@php $groupIcons = [ 'Meta' => 'sliders-h', 'Home Page' => 'house', 'Footer' => 'shoe-prints', 'Store' => 'money-bill', 'News' => 'bullhorn', 'Forum' => 'comments', 'Keys' => 'key', 'Design' => 'palette', ]; @endphp @extends('layouts.admin') @section('title', 'Site Configurations') @section('content')

Configuration Management

Manage and update system configurations by category

{{ ucfirst($group) }} Settings

@csrf
@forelse($configurations as $config)
{{ $config->key }}
@if($config->type == 'boolean')
value == '1' ? 'checked' : '' }} class="toggle-switch-checkbox">
@elseif($config->type == 'json')
Format JSON
@elseif($config->type == 'color')
@elseif($config->type == 'icon')
{{-- Icons will be loaded here via JavaScript --}}
@elseif($config->type == 'select') @elseif($config->type == 'file' || $config->type == 'image')
@if($config->value)
Current file @if(in_array(pathinfo($config->value, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif', 'svg', 'ico'])) Current file @else @endif
@endif
@elseif($config->type == 'text' && strlen($config->value) > 100) @else @endif @if($config->type != 'checkbox')
{{ ucfirst($config->type) }}
@endif
@empty

No configurations found for this category.

@endforelse
@if(count($configurations) > 0)
@endif
@push('scripts') @endpush @endsection