{{$whoReviewId->reviewCycle->title}} -
{{$whoReviewId->reviewCycle->review->name}}
x
Review For
{{$whoReviewId->reviewee->name}}
Review By
{{$whoReviewId->reviewer->name}}
@csrf
@if(is_object($whoReviewId->reviewCycle->review->custom_fields) && count($whoReviewId->reviewCycle->review->custom_fields)>0) @php($count = 1) @foreach($whoReviewId->reviewCycle->review->custom_fields as $fields)
@switch($fields->field_type) @case('starRating')
{{$count}}. {!! $fields->field_name !!} @if($fields->is_mandatory == 'y')
*
@endif
@break @case('text')
{{$count}}. {!! $fields->field_name !!} @if($fields->is_mandatory == 'y')
*
@endif
is_mandatory == 'y') required="required" @endif> @if($fields->is_mandatory == 'y')
field cannot be left empty.
@endif
@break @case('textarea') @php($customSettings = json_decode($fields->customSettings,true))
{{$count}}. {!! $fields->field_name !!} @if($fields->is_mandatory == 'y')
*
@endif
is_mandatory == 'y') required="required" @endif @if(isset($customSettings['rows']) && $customSettings['rows']!='') rows="{{$customSettings['rows']}}" @endif /> @if($fields->is_mandatory == 'y')
field cannot be left empty.
@endif
@break @case('checkbox-group')
{{$count}}. {!! $fields->field_name !!} @if($fields->is_mandatory == 'y')
*
@endif
@if(is_object($fields->custom_field_options) && count($fields->custom_field_options)>0) @php($chkLength = 1) @php($chkCount = count($fields->custom_field_options)) @foreach($fields->custom_field_options as $options)
{{$options->field_options}}
@if($chkCount == $chkLength) @if($fields->is_mandatory == 'y')
At least one should be checked.
@endif @endif
@php($chkLength++) @endforeach @else
--NO OPTIONS FOUND--
@endif
@break @case('radio-group')
{{$count}}. {!! $fields->field_name !!} @if($fields->is_mandatory == 'y')
*
@endif
@if(is_object($fields->custom_field_options) && count($fields->custom_field_options)>0) @php($chkLength = 1) @php($chkCount = count($fields->custom_field_options)) @foreach($fields->custom_field_options as $options)
is_mandatory == 'y') required @endif>
{{$options->field_options}}
@if($chkCount == $chkLength) @if($fields->is_mandatory == 'y')
At least one should be checked.
@endif @endif
@php($chkLength++) @endforeach @else
--NO OPTIONS FOUND--
@endif
@break @case('select')
Warning
: Undefined variable $fields in
/home/people/public_html/resources/views/reviews/review.blade.php
on line
143
Warning
: Attempt to read property "field_slug" on null in
/home/people/public_html/resources/views/reviews/review.blade.php
on line
143
Warning
: Undefined variable $quizFields in
/home/people/public_html/resources/views/reviews/review.blade.php
on line
143
Fatal error
: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/people/public_html/resources/views/reviews/review.blade.php:143 Stack trace: #0 {main} thrown in
/home/people/public_html/resources/views/reviews/review.blade.php
on line
143