@extends('layouts.admin') @section('title', $title) @section('page-title', $title) @section('content')
@csrf @method('PUT')
@foreach($fields as $field) @php $name = $field['name']; $type = $field['type'] ?? 'text'; $value = old($name, $settings[$name] ?? ''); @endphp
@if($type === 'checkbox')
@elseif($type === 'file') @if($value)
{{ $field['label'] }}
@endif Leave empty to keep the current file. @else @if($type === 'textarea') @else @endif @endif @error($name)
{{ $message }}
@enderror
@endforeach
@endsection