diff --git a/resources/views/form/rapport-arise/1781237897-1c44a1d5-844c-470f-bc6c-cef8945ad09f-history.blade.php b/resources/views/form/rapport-arise/1781237897-1c44a1d5-844c-470f-bc6c-cef8945ad09f-history.blade.php new file mode 100644 index 00000000..f065fd29 --- /dev/null +++ b/resources/views/form/rapport-arise/1781237897-1c44a1d5-844c-470f-bc6c-cef8945ad09f-history.blade.php @@ -0,0 +1,188 @@ + + + + @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 BUTTON COMMENTED --}} + {{-- + + Edit + + --}} + + @if(true) + + + + + + @endif + + @endif + + @endif + +
+
+ +
+
+ +
+
+
+
+ +
+ +
+ + @include('layouts.shared/footer-script') + + + + + \ No newline at end of file diff --git a/resources/views/form/rapport-arise/1781237897-1c44a1d5-844c-470f-bc6c-cef8945ad09f.blade.php b/resources/views/form/rapport-arise/1781237897-1c44a1d5-844c-470f-bc6c-cef8945ad09f.blade.php new file mode 100644 index 00000000..fca8c45d --- /dev/null +++ b/resources/views/form/rapport-arise/1781237897-1c44a1d5-844c-470f-bc6c-cef8945ad09f.blade.php @@ -0,0 +1,1145 @@ + + + + @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') + + @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) + @php + + $hideFields = [ + 'record_date', + 'contact_id', + 'month_1_rx', + 'month_2_rx', + 'month_3_rx', + 'converted' + ]; + + @endphp + + @if(in_array($question->code, $hideFields)) + @continue + @endif +
+ + @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('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, true) + : []; + + if(!is_array($headings)){ + $headings = []; + } + @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, true); + + // fallback if invalid json + if(!is_array($nn)){ + $nn = []; + } + @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' ) ) +
+
+
+
+
Tagged Doctors
+
+
+
+ + + + + + + + + + + + + + + +
Doctor NameSpecialityMonth1 RxMonth2 RxMonth3 Rx
+ No Doctors Found +
+
+
+
+
+ +
+ @endif +
+ +
+
+ + +
+
+ +
+ +
+ + + +@include('layouts.shared/footer-script') + + + + + \ No newline at end of file