@extends('layouts.app') @section('content')

{{ $form->form_name }}

@php $autotask_oppr = $form ->includeopportunity; @endphp
@csrf @foreach ($fields as $index => $field) @php $isRequired = !empty($field->required) ? 'required' : ''; $name = e($field->name); $label = e($field->label); @endphp
{{-- Checkbox --}} @if ($field->field_type === 'checkbox') @foreach (explode(',', $field->options) as $opt) @endforeach @endif {{-- Input fields --}} @if (in_array($field->field_type, ['text', 'email', 'password', 'date'])) @elseif ($field->field_type === 'textarea') @elseif ($field->field_type === 'select') @elseif ($field->field_type === 'country') @elseif ($field->field_type === 'state') @elseif ($field->field_type === 'payment')
@if ($publishkey=='')

Stripe Key Not Setup Yet

@endif @elseif ($field->field_type === 'divider')
@elseif ($field->field_type === 'image')
@elseif ($field->field_type === 'multiselect') @elseif ($field->field_type === 'upload') @endif @if ($field->field_type === 'signature') @php $canvasId = "signature-pad-" . $index; $clearId = "clear-" . $index; $inputId = "signature-" . $index; @endphp

Draw your signature below:

@endif {{-- Company / Contact / Opportunity special fields --}} @if ($field->field_type === 'company') @if ($autotask_oppr == '1') @endif @endif
@endforeach
@foreach ($fields as $index => $field) @if ($field->field_type === 'payment' && $publishkey!='') @endif @endforeach @if($autotask_oppr == '1') @endif @endsection