@extends('layouts.form') @section('content') @if($setting->public_branding == 1) @php $bannercolor = ''; if ($setting->same_app_branding == 1) { if (!empty($setting->banner_color)) { $bannercolor = $setting->banner_color; } } else { if (!empty($setting->public_banner_color)) { $bannercolor = $setting->public_banner_color; } } $base_path = rtrim(dirname(request()->getRequestUri()), '/admin'); $base_path = rtrim($base_path, '/forms'); @endphp @endif

{{ $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')

Amount payable: ${{$field->options}}

@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($setting->public_branding == 1)
@if(!empty($setting->footer_text))

{{ $setting->footer_text }}

@endif
@endif @if($autotask_oppr == '1') @endif
@endsection