diff --git a/resources/views/form/rapport-pulmocare/1782369496-6603002f-f5ab-4352-86fc-b1b384cc2b60-history.blade.php b/resources/views/form/rapport-pulmocare/1782369496-6603002f-f5ab-4352-86fc-b1b384cc2b60-history.blade.php new file mode 100644 index 00000000..6ee76b52 --- /dev/null +++ b/resources/views/form/rapport-pulmocare/1782369496-6603002f-f5ab-4352-86fc-b1b384cc2b60-history.blade.php @@ -0,0 +1,106 @@ + + + + @include('layouts.shared/title-meta', ['title' => "History"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + + +
+
+ + ` +
+
+

{{$formname}}

+
+ +
+ + @if(session()->has('message')) +
+ {{ session()->get('message') }} +
+ @endif + @if(session()->has('error')) +
+ {{ session()->get('error') }} +
+ @endif +
+
+
+
+
+
+
+ + + + + @foreach($questions as $code => $question) + @if($question->type == 'hidden') + @continue; + @endif + + @endforeach + + + + + @foreach($submissions as $submission) + + + @foreach($questions as $code => $question) + @if($question->type == 'hidden') + @continue; + @endif + @if($question->type == 'file') + + + @elseif($question->type == 'radiometrix' && isset($submission->formdata->{$code}) && is_object($submission->formdata->{$code})) + + + @elseif(count((array)$question->options) > 0 && 1==2 ) + + @else + + @endif + @endforeach + + + @endforeach + +
Submission Date{{$question->label}}Action
{{date("d M Y", strtotime($submission->updatedAt))}} Download + {{ collect((array)$submission->formdata->{$code})->map(function($val, $key){ return "$key: $val"; })->implode(', ') }} + {{ $question->options->{ $submission->formdata->{$code} } }}{{ isset($submission->formdata->{$code}) ? is_array($submission->formdata->{$code})? implode(', ', $submission->formdata->{$code}) :$submission->formdata->{$code} : $code }} + @if($question->can_edit == 'yes' || sizeof($submission->workflow_approvals) == 0 ) + @if($submission->workflow == 'yes' && $submission->workflow_status == 'approved' ) +

Approved

+ @else + {{-- Edit --}} + @if(isset($form->allow_delete_by_user) && $form->allow_delete_by_user == 'yes') + Delete + @endif + @endif + @endif +
+
+ +
+
+ +
+
+
+
+ +
+ +
+ + @include('layouts.shared/footer-script') + + \ No newline at end of file diff --git a/resources/views/form/rapport-pulmocare/1782369496-6603002f-f5ab-4352-86fc-b1b384cc2b60.blade.php b/resources/views/form/rapport-pulmocare/1782369496-6603002f-f5ab-4352-86fc-b1b384cc2b60.blade.php index c549c7c5..9bf53e15 100644 --- a/resources/views/form/rapport-pulmocare/1782369496-6603002f-f5ab-4352-86fc-b1b384cc2b60.blade.php +++ b/resources/views/form/rapport-pulmocare/1782369496-6603002f-f5ab-4352-86fc-b1b384cc2b60.blade.php @@ -60,6 +60,9 @@ @foreach($questions as $question)
+ @if($question->code == 'mobile_number') +
10-digit mobile number (starting with 6, 7, 8, or 9)
+ @endif @switch($question->type) @case('hidden') @@ -212,6 +215,7 @@ + + + + \ No newline at end of file diff --git a/resources/views/form/rapport-team3/1782971995-f7a03b4e-d7b8-4046-a045-af77b3bd9679.blade.php b/resources/views/form/rapport-team3/1782971995-f7a03b4e-d7b8-4046-a045-af77b3bd9679.blade.php new file mode 100644 index 00000000..0e00a738 --- /dev/null +++ b/resources/views/form/rapport-team3/1782971995-f7a03b4e-d7b8-4046-a045-af77b3bd9679.blade.php @@ -0,0 +1,354 @@ + + + + @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}}

+
+ @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) +
+ @if($form->link_type == 'form') + View History + @else + Back + @endif +
+ @endif + @if(isset($form->user_info)) +
+
Submitted By: {{$form->user_info->name}}
+
+ @endif +
+ + @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') + code == 'availibility_done_at_chemist_chemist_name') + pattern="[A-Za-z ]+" + oninput="this.value=this.value.replace(/[^A-Za-z ]/g,'')" + @endif + {{$question->required == 'yes'?'required':'' }} + {{ in_array($question->code, ['speciality','legacy_code']) ? 'readonly' : '' }} + value="{{isset($question->value)?$question->value:''}}"> + @break + @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('radio') + @foreach($question->options as $option) +
+ + +
+ @endforeach + @break + @case('radiometrix') + @php + // Decode the first option's value to use as heading labels + $headings = + count($question->options) > 0 + ? json_decode($question->options[0]->value) + : []; + @endphp + + {{-- Matrix Wrapper with Horizontal Scroll on Small Screens --}} +
+
+ {{-- Table Headers --}} +
+
+ {{-- Placeholder for row labels --}} + @foreach ($headings as $head) +
{{ $head }} +
+ @endforeach +
+ + {{-- Table Rows --}} + @foreach ($question->options as $option) + @php $nn = json_decode($option->value); @endphp +
+
+ {{ $option->display }} +
+ + @foreach ($nn as $value) +
+ display) && $option->display != $option->display ? 'checked' : '' }}> + +
+ @endforeach +
+ @endforeach +
+
+ @break + @case('checkbox') + @foreach($question->options as $option) +
+ value) && $question->value != '' && in_array($option->value, $question->value) ? 'checked':''}}> + +
+ @endforeach + @break + @case('file') + @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) + required == 'yes'?'required':'' }}> + @elseif(isset($question->value)) + + @endif + + @break + @case('multitextbox') +
+ @foreach($question->options as $option) +
{{$option->display}}
+
+ +
+ @endforeach +
+ @break + @endswitch +
+ @endforeach + @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) +
+ +
+ @endif +
+ +
+
+ + + + +
+
+ +
+ +
+ + +@include('layouts.shared/footer-script') + + + + + \ No newline at end of file diff --git a/resources/views/form/rapport-titans/1781589472-85f7118d-3199-483f-bbae-1b8f5d0f24e8.blade.php b/resources/views/form/rapport-titans/1781589472-85f7118d-3199-483f-bbae-1b8f5d0f24e8.blade.php index 93146351..7f5f89b5 100644 --- a/resources/views/form/rapport-titans/1781589472-85f7118d-3199-483f-bbae-1b8f5d0f24e8.blade.php +++ b/resources/views/form/rapport-titans/1781589472-85f7118d-3199-483f-bbae-1b8f5d0f24e8.blade.php @@ -118,7 +118,7 @@ @endif @foreach ($questions as $question) - @if (in_array($question->code, ['execution_date','actual_no_of_attendees' ,'hcp_name','pcode_of_wrapper_doctor','speaker_name'])) + @if (in_array($question->code, ['execution_date','actual_no_of_attendees' ,'hcp_name','pcode_of_wrapper_doctor','speaker_name','venue','time','eas_id'])) @continue @endif
@@ -127,6 +127,16 @@ 'yes' ? '*' : '' !!} @switch($question->type) + @case('time') + required == 'yes' ? 'required' : ''}} + value="{{ isset($question->value) ? $question->value : '' }}" + step="60"> + @break @case('hidden') *' : '' !!} @switch($question->type) + @case('time') + required == 'yes' ? 'required' : ''}} + value="{{ isset($question->value) ? $question->value : '' }}" + step="60"> + @break @case('hidden')