@extends('layouts.main') @section('content')
{{$title}}
@include('models._reactions')
    @foreach ($sections as $section)
  1. {{ $section->name }}
      @foreach ($section->questions as $question)
    1. {{ $question->question }}
      1. @foreach ($question->responses as $response) @php $check_answers = App\Answer::where('feedback_assessment_id',$assessment_id) ->where('customer_id',$customer_id) ->where('question_response_id',$response->id) ->where('question_id',$question->id)->get(); @endphp @if($question->answer_type == 'multiple')
      2. count() == 1 ? 'checked':'' }} type="checkbox" name="responseses{{$question->id}}" id="responses{{ $response->id }}" value="{{ $response->id }}"> {{ $response->text_response }} ({{ $response->mark }})
      3. @endif @if($question->answer_type == 'single')
      4. count() == 1 ? 'checked':'' }} type="radio" name="responseses{{$question->id}}" id="responses{{ $response->id }}" value="{{ $response->id }}"> {{ $response->text_response }} ({{ $response->mark }})
      5. @endif @include("models._post_responses") @endforeach
      @endforeach

  2. @if($question->answer_type == 'none')

    @endif @include("models._post_remark")
    @endforeach
@endsection