@extends('layouts.app') @section('title', $field->exists ? 'Edit field: '.$field->label : 'New '.strtolower(\App\Models\CustomField::ENTITIES[$field->entity]).' field') @section('content')
@csrf @if ($field->exists) @method('PUT') @endif
@error('label')
{{ $message }}
@enderror
exists) placeholder="from the label"> @error('field_key')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('options_text')
{{ $message }}
@enderror @error('options')
{{ $message }}
@enderror Keys stay fixed once saved; you can rename labels.
@foreach (['is_required' => 'Required', 'show_in_list' => 'Column in the list', 'show_in_filters' => 'Filter (dropdown and yes/no only)', 'show_in_import' => 'Column in the import template', 'show_in_portal' => 'Visible to parents and students', 'is_active' => 'Active'] as $k => $l) @endforeach @error('show_in_filters')
{{ $message }}
@enderror
@endsection