@extends('layouts.app') @section('title', $schema['title'] . ' — Field Visit') @section('content') {{-- ── Page header ─────────────────────────────────────────────────────────── --}}
All forms

{{ $schema['title'] }}

{{-- ── Validation error summary ────────────────────────────────────────────── --}} @if ($errors->any())

Please fix the errors below:

@endif
@csrf @foreach ($schema['sections'] as $sectionIndex => $section) {{-- ── Section card ──────────────────────────────────────────────────── --}}
{{-- Section header strip --}}
{{ $sectionIndex + 1 }}

{{ $section['title'] }}

{{-- Fields --}}
@foreach ($section['fields'] as $field) @php $isConditional = ($field['required'] === 'conditional'); $dependsOn = $field['depends_on'] ?? null; $isIndented = $field['_indent'] ?? false; $wrapperClass = $isIndented ? 'ml-5 pl-4 border-l-2 border-indigo-100' : ''; $hiddenAttr = ($isConditional && $dependsOn) ? 'hidden' : ''; $dataAttrs = ''; if ($isConditional && $dependsOn) { $dataAttrs = 'data-depends-on="' . e($dependsOn['field']) . '" ' . 'data-depends-values="' . e(implode(';', $dependsOn['values'])) . '"'; } @endphp
@include('partials.fields.' . $field['type'], ['field' => $field])
@endforeach
@endforeach {{-- ── Footer card: Submitted By + Submit ─────────────────────────────── --}}

Submitted by / কে জমা দিচ্ছেন

@php $sbOptions = $schema['submitted_by_options'] ?? []; @endphp

আপনার নাম বেছে নিন

@error('submitted_by') @enderror
{{-- ── Vanilla JS: conditional show/hide + disable-on-submit ─────────────── --}} {{-- ── Shop autocomplete combobox (only active when shop_autocomplete fields are present) ── --}} @endsection