@extends('layouts.app') @section('title', 'Settings — Field Templates') @section('page-title', 'Property Field Templates') @section('content')

Property Field Templates

Define custom fields shown on property forms for each property type
@if($activeType) @endif
{{-- Type selector tabs --}}
@if($activeType)
@forelse($templates as $tmpl) @php $parentField = $tmpl->depends_on ? $templates->firstWhere('field_key', $tmpl->depends_on) : null; $parentLabel = $parentField ? $parentField->field_label : ($tmpl->depends_on ?: null); @endphp @empty @endforelse
Field Label Field Key Type Required Condition Actions
{{ $tmpl->field_label }} {{ $tmpl->field_key }} {{ $fieldTypes[$tmpl->field_type] ?? $tmpl->field_type }} @if($tmpl->field_type === 'select' && !empty($tmpl->options)) ({{ count($tmpl->options) }} options) @endif @if($tmpl->is_required) @else @endif @if($parentLabel) {{ $parentLabel }} = {{ $tmpl->show_if_value }} @else @endif
@csrf @method('DELETE')
No fields defined for this property type yet.
@endif @push('scripts') @endpush @endsection