@extends('adminlte::page') @section('title', 'Forms') @section('content_header')

Forms

@endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif
@foreach ($forms as $form) @php $badgeMap = ['indigo'=>'primary','violet'=>'info','emerald'=>'success','amber'=>'warning']; $badge = $badgeMap[$form->color] ?? 'secondary'; @endphp @endforeach
# Form Slug Sections Questions Enumerators Active Actions
{{ $form->sort_order }} {{ $form->color }} {{ Str::before($form->title, ' (') }} @if($form->title_bn) {{ $form->title_bn }} @endif {{ $form->slug }} {{ $form->sections()->count() }} {{ $form->questions_count }} {{ implode(', ', $form->submitted_by_options ?? []) }}
@csrf
Sections Edit
Note: Adding new forms requires adding a config file and re-running the FormSeeder. Changes to existing forms go live immediately.
@endsection