diff --git a/resources/views/form/rapport-team4/1788175239-76b9a95a-2dd2-42ce-8686-72dfe2cd37f7.blade.php b/resources/views/form/rapport-team4/1788175239-76b9a95a-2dd2-42ce-8686-72dfe2cd37f7.blade.php index 9b873578..7108d89d 100644 --- a/resources/views/form/rapport-team4/1788175239-76b9a95a-2dd2-42ce-8686-72dfe2cd37f7.blade.php +++ b/resources/views/form/rapport-team4/1788175239-76b9a95a-2dd2-42ce-8686-72dfe2cd37f7.blade.php @@ -1,574 +1,100 @@ - - @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/title-meta', ['title' => "History"]) @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 - - @php - $submissions = Formhelper::getMultiformData( $form->partition, $form_id, $form->user_id); - $submissions = $submissions->data->submissions; - - /* echo "
";
-                            print_r($submissions);
-                            echo "
"; */ - - $existingCount = count($submissions); - - $targetLimit = 20; // नवीन लिमिट २० - - $historyDoctorIds = []; - - foreach ($submissions as $sub) { - if (isset($sub->formdata->cont_id) && $sub->formdata->cont_id != '') { - $historyDoctorIds[] = (string) $sub->formdata->cont_id; - } - } - - $historyDoctorIds = array_unique($historyDoctorIds); - - @endphp - - @if($existingCount<20 || $id) -
- - @csrf - @if($id) - - @endif - @if(isset($form->manager_can_submit) && $form->manager_can_submit == true) -
- - - -
- @endif - @foreach($questions as $question) - {{-- @if( !in_array($question->code, - ["record_date","select_rxber_type"] ) ) - @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 - @endswitch -
- @endforeach - @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) -
- -
- @endif -
- @elseif(!$id) -

You have already submitted the 20 Chemist & Dr Tagging.

- @endif -
-
- - - - -
-
- + +
+
+

{{$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(count((array)$question->options) > 0 && 1==2 ) + + @else + + @endif + @endforeach + + + @endforeach + +
Submission Date{{$question->label}}Action
{{date("d M Y", strtotime($submission->updatedAt))}} Download{{ $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