@extends('main') @section('title', 'General Settings | Page') @section('content')
@csrf @method('PUT')
@forelse($globalParameters as $param) {{-- Setiap parameter dalam satu baris --}}
{{-- Gunakan col-12 agar setiap setting berada di baris terpisah --}}
{{-- Menggabungkan label dan key dalam satu baris --}} @if ($param->type === 'string' || $param->type === 'number') @elseif ($param->type === 'text') @elseif ($param->type === 'boolean')
{{-- Tambah margin-top agar tidak terlalu rapat --}} value == 'true' || $param->value == '1' ? 'checked' : '' }}>
@elseif ($param->type === 'file' || $param->type === 'image') @if ($param->value) Current file: {{ $param->value }} @if ($param->type === 'image')
{{ $param->description }}
@endif @endif @else Type "{{ $param->type }}" is not fully supported yet. @endif @error($param->key)
{{ $message }}
@enderror
@empty

No global parameters found.

@endforelse
Cancel
@endsection