From 4d9f8876df1170306cba6a36829baa80349fa45e Mon Sep 17 00:00:00 2001 From: arbaz <54329740+arbazbagwan@users.noreply.github.com> Date: Mon, 30 Jan 2023 11:21:53 +0530 Subject: [PATCH] view file for survey form(domain-formid) --- resources/views/srvey/common.blade.php | 13 +- ...7f34-4762-4b40-a466-8b282d183332.blade.php | 259 ++++++++++++++++++ 2 files changed, 260 insertions(+), 12 deletions(-) create mode 100644 resources/views/srvey/rapport-rapport/1674212914-9f377f34-4762-4b40-a466-8b282d183332.blade.php diff --git a/resources/views/srvey/common.blade.php b/resources/views/srvey/common.blade.php index 851c7532..1b988959 100644 --- a/resources/views/srvey/common.blade.php +++ b/resources/views/srvey/common.blade.php @@ -216,17 +216,6 @@ $('#report-form').on('submit', function(event) { event.preventDefault(); $("#pageloader").fadeIn(); - $.ajax({ - type: "POST", - url: '/srvey/ciplatodoctor', - data: new FormData($('#report-form')[0]), - processData: false, - contentType: false, - success: function(data) { - console.log(data); - }, - }); - $.ajax({ type: "POST", url: '/srvey/ajaxsubmit', @@ -250,7 +239,7 @@ }) } }, - }); + }); }); }); diff --git a/resources/views/srvey/rapport-rapport/1674212914-9f377f34-4762-4b40-a466-8b282d183332.blade.php b/resources/views/srvey/rapport-rapport/1674212914-9f377f34-4762-4b40-a466-8b282d183332.blade.php new file mode 100644 index 00000000..851c7532 --- /dev/null +++ b/resources/views/srvey/rapport-rapport/1674212914-9f377f34-4762-4b40-a466-8b282d183332.blade.php @@ -0,0 +1,259 @@ + + + + + @include('layouts.shared/title-meta', ['title' => 'Form']) + @include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? '']) + + +
+ processing... +
+ + +
+
+
+
+
+
+ + @if (Session::has('error')) +
{{ Session::get('error') }}
+
+ @endif + @if (session('success')) +
{{ session('success') }} +
+
+ @endif +
+

{{ $form->title }}

+
+ +
+ + @csrf + @if ($id) + + @endif + @if (isset($form->manager_can_submit) && $form->manager_can_submit == true) +
+ + +
+ @endif + + @foreach ($questions as $question) +
+ + @switch($question->type) + @case('hidden') + + @break + + @case('text') + @case('email') + + @case('tel') + @case('date') + required == 'yes' ? 'required' : '' }} + value="{{ isset($question->value) ? $question->value : '' }}"> + @break + + @case('number') + required == 'yes' ? 'required' : '' }} + value="{{ isset($question->value) ? $question->value : 0 }}"> + @break + + @case('textarea') + + @break + + @case('dropdown') + + @break + + @case('checkbox') + @foreach ($question->options as $option) +
+ value) && $question->value != '' && in_array($option->value, $question->value) ? 'checked' : '' }}> + +
+ @endforeach + @break + + @case('radio') + @foreach ($question->options as $option) +
+ value) && $question->value != $question->value ? 'checked' : '' }}> + +
+ @endforeach + @break + + @case('file') + + @break + + @case('multitextbox') +
+ @foreach ($question->options as $option) +
{{ $option->display }}
+
+ +
+ @endforeach +
+ @break + + @case('radiometrix') + @foreach ($question->options as $option) +
+
{{ $option->display }}
+
+ @php + $nn = json_decode($option->value); + @endphp + @foreach ($nn as $value) + display) && $option->display != $option->display ? 'checked' : '' }}> + {{ $value }} + @endforeach +
+ +
+ @endforeach + @break + @endswitch +
+ @endforeach + @if (!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes')) +
+ +
+ @endif +
+ +
+
+ + + + +
+
+ +
+ +
+ + + @include('layouts.shared/footer-script') + + + + +