<?php $__env->startSection('content'); ?>
<div class="side-title">
    <h3><?php echo e($head ?? ''); ?></h3>
</div>

<div class="border-item">
    <form class="form-row" method="post"  enctype="multipart/form-data">
        
        

       <?php $__currentLoopData = $answers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
       <div class="form-group col-lg-12">
           <h1><?php echo e(questionname($row->question_id)); ?></h1>
       </div>
       <div class="col-lg-12">
       <div class="row">
       <?php if($row->type == 'text'): ?>
       <div class="form-group col-lg-6">
            <label><?php echo e(__('answers.answer')); ?> </label>
            <input type="text" class="form-control" disabled placeholder="<?php echo e(__('answers.answer')); ?>" value="<?php echo e(json_decode($row->solution)); ?>" />
        </div>
        <?php elseif($row->type == 'select'): ?>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('answers.answer')); ?> </label>
            <input type="text" class="form-control" disabled placeholder="<?php echo e(__('answers.answer')); ?>" value="<?php echo e(answername(json_decode($row->solution))); ?>" />
        </div>
        <?php elseif($row->type == 'choise'): ?>
        <?php $__currentLoopData = json_decode($row->solution); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $answer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('answers.answer')); ?> </label>
            <input type="text" class="form-control" disabled placeholder="<?php echo e(__('answers.answer')); ?>" value="<?php echo e(answername($answer)); ?>" />
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php else: ?>
       
       <div class="col-12"><label><?php echo e(__('answers.answer')); ?>  </label></div>
        <div class="form-group col-lg-12">
            
            <img src="<?php echo e(asset(json_decode($row->solution))); ?>">
        </div>
        <?php endif; ?>
        </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


       
    </form>
</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>
    <!-- Editor JS files -->

        <script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
    <script>
        let route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>",
            url = "<?php echo e(url('/')); ?>/",
            url_type = <?php echo json_encode(url(getCurrentLocale().'/admin/type/')); ?>,
            currentLanguage = "<?php echo e(getCurrentLocale()); ?>",
            imagePath = "<?php echo e(asset('')); ?>";
    </script>
    <script src="<?php echo e(asset('assets/admin/js/editor.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/lfm.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/articles.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/areas.js')); ?>"></script>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/raied/resources/views/admin/answers/form.blade.php ENDPATH**/ ?>