@extends('layouts.admin') @section('title', 'Dynamic Fields') @section('header', 'Dynamic Fields') @section('content')
@foreach($modules as $mod) {{ ucfirst($mod) }} @endforeach @php $commonModules = ['product', 'user', 'category', 'post', 'page', 'customer', 'order'] @endphp @foreach($commonModules as $mod) @if(!in_array($mod, $modules->toArray())) {{ ucfirst($mod) }} @endif @endforeach
@if(session('success'))
{{ session('success') }}
@endif

Add New Field

@csrf

Fields for {{ ucfirst($module) }}

@forelse($fields as $field) @csrf @method('PUT') @empty @endforelse
Order Field Name Type Required Options Actions
is_required ? 'checked' : '' }} class="w-4 h-4 text-blue-600 rounded"> @if(in_array($field->type, ['select', 'radio', 'checkbox'])) @else - @endif
@csrf @method('DELETE')
No fields defined for this module
@endsection