@extends('common::layouts.master') @section('post-aria-expanded') aria-expanded="true" @endsection @section('post-show') show @endsection @section('post') active @endsection @section('create_personality_quiz') active @endsection @section('modal') @include('gallery::image-gallery') @include('gallery::video-gallery') {{-- @include('gallery::image-gallery-content') --}} @endsection @section('content')
{!! Form::open(['route'=>['update-quiz','personality-quiz',$post->id], 'method' => 'post','enctype'=>'multipart/form-data']) !!}

{{ __('update_post') }}

@if(session('error'))
{{session('error')}}
@endif @if(session('success'))
{{session('success')}}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{ __('posts_details') }}

{{-- result section start--}}

{{ __('results') }}

@foreach($post->quizResults as $key => $quiz_result)
@if(isFileExist($quiz_result->image, $result = @$quiz_result->image->thumbnail)) {!! $quiz_result->result_title !!} @else {!! $quiz_result->result_title !!} @endif
@endforeach
{{-- result section end--}} {{-- question section start--}}

{{ __('questions') }}

@foreach($quiz_questions as $value => $quiz_question) @php $answer_format_class = ""; if ($quiz_question->answer_format == 'large_image') { $answer_format_class = "quiz-answers-format-large-image"; } elseif ($quiz_question->answer_format == 'text') { $answer_format_class = "quiz-answers-format-text"; } @endphp
@if(isFileExist($quiz_question->image, $result = @$quiz_question->image->thumbnail)) {!! $quiz_question->question !!} @else {!! $quiz_question->question !!} @endif
{{ __('answer_format') }}
@foreach($quiz_question->quizAnswers as $quiz_question_answer)
@if (!empty($quiz_question_answer->image_id)) @if(isFileExist($quiz_question_answer->image, $result = @$quiz_question_answer->image->thumbnail)) @else @endif @else
@endif
@endforeach
@endforeach
{{-- question section end--}}

{{ __('seo_details') }}

{{ __('visibility') }}

{{ __('image') }}

@if(isFileExist($post->image, $result = @$post->image->thumbnail)) {!! $post->title !!} @else {!! $post->title !!} @endif

{{ __('article_detail') }}

{{ __('publish') }}*

post_status==0 && $post->scheduled==1) @else id="display-nothing" @endif>
{!! Form::close() !!}
@endsection @section('script') {{-- //add quiz question to db--}} {{-- //add quiz result to db--}} {{-- //add quiz answer to db--}} @endsection