
<?php $__env->startSection('title'); ?>
<?php echo e(__("message.FRQ")); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="page-header">
	<h3 class="page-title"><?php echo e(__("message.FRQ")); ?></h3>
	<nav aria-label="breadcrumb">	      		
       <ol class="breadcrumb">
         <li class="breadcrumb-item"><a href="<?php echo e(route('admin-dashboard')); ?>"><?php echo e(__("message.Home")); ?></a></li>
         <li class="breadcrumb-item active"><?php echo e(__("message.FRQ")); ?></li>
       </ol>
     </nav>	      	
</div>
<div class="row">
	<div class="col-lg-12 grid-margin stretch-card">
       <div class="card">                	
         <div class="card-body">
         	 <?php if(Session::has('message')): ?>
            <div class="col-sm-12">
               <div class="alert  <?php echo e(Session::get('alert-class', 'alert-info')); ?> alert-dismissible fade show" role="alert"><?php echo e(Session::get('message')); ?>

                  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                  <span aria-hidden="true">&times;</span>
                  </button>
               </div>
            </div>
            <?php endif; ?>
            <input type="hidden" name="package_id" id="package_id" value="<?php echo e($id); ?>">
            <input type="hidden" name="type" id="type" value="<?php echo e($type); ?>">
           
                 <button type="button" class="btn btn-secondary mt-3" data-bs-toggle="modal" data-bs-target="#normalmodal" style="margin-bottom: 25px;"><?php echo e(__("message.Add FRQ")); ?></button>
           
          
            <div class="table-responsive">
                 <table id="FRQTable" class="table table-bordered text-nowrap dataTable no-footer">
                   	<thead>
                     <tr>
                       	 <th><?php echo e(__("message.ID")); ?></th>
                         <th><?php echo e(__("message.Question")); ?></th>
                         <th><?php echo e(__("message.Answer")); ?></th>
                         <th><?php echo e(__("message.Action")); ?></th>
                     </tr>
                   	</thead>
                   	<tbody>                        
                   	</tbody>
                   	<tfoot>
                        <tr>
                           <th><?php echo e(__("message.ID")); ?></th>
                           <th><?php echo e(__("message.Question")); ?></th>
                           <th><?php echo e(__("message.Answer")); ?></th>
                           <th><?php echo e(__("message.Action")); ?></th>
                        </tr>
                     </tfoot>
                 </table>
              </div>
         </div>
       </div>
     </div>
</div>
<div class="modal fade" id="normalmodal" tabindex="-1" aria-labelledby="normalmodal" style="display: none;" aria-hidden="true">
            <div class="modal-dialog" role="document">
               <div class="modal-content">
                  <div class="modal-header">
                     <h5 class="modal-title" id="normalmodal1"><?php echo e(__("message.Add FRQ")); ?></h5>
                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                     </button>
                  </div>
                  <div class="modal-body">
                     <form  action="<?php echo e(route('update-frq')); ?>" method="post">
                      <?php echo e(csrf_field()); ?>

                       <input type="hidden" name="package_id"  value="<?php echo e($id); ?>">
                       <input type="hidden" name="type" value="<?php echo e($type); ?>">
                       <input type="hidden" name="id" value="0">
                     <div class="col-sm-12 col-md-12">
                        <div class="form-group">
                           <label class="form-label"><?php echo e(__("message.Question")); ?></label>
                           <textarea class="form-control" name="question" id="question" required="" placeholder="<?php echo e(__('message.Enter Question')); ?>"></textarea>
                        </div>
                     </div>
                     <div class="col-sm-12 col-md-12">
                        <div class="form-group">
                           <label class="form-label"><?php echo e(__("message.Answer")); ?></label>
                           <textarea class="form-control" name="answer" id="answer" required="" placeholder="<?php echo e(__('message.Enter Answer')); ?>"></textarea>
                        </div>
                     </div>               
                  </div>
                  <div class="modal-footer">
                     <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo e(__('message.Close')); ?></button>
                      <?php if(Session::get("is_demo")==1): ?>
                      <button type="button" class="btn btn-success" onclick="disablebtn()"><?php echo e(__('message.Save')); ?></button>
                      <?php else: ?>
                     <button type="submit" class="btn btn-success"><?php echo e(__('message.Save')); ?></button>
                       <?php endif; ?>
                  </div>
                  </form>
               </div>
            </div>
         </div>

         <div class="modal fade" id="editfrq" tabindex="-1" aria-labelledby="editfrq" style="display: none;" aria-hidden="true">
            <div class="modal-dialog" role="document">
               <div class="modal-content">
                  <div class="modal-header">
                     <h5 class="modal-title" id="normalmodal1"><?php echo e(__('message.Edit FRQ')); ?></h5>
                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                     </button>
                  </div>
                  <div class="modal-body">
                     <form  action="<?php echo e(route('update-frq')); ?>" method="post">
                      <?php echo e(csrf_field()); ?>

                       <input type="hidden" name="package_id"  value="<?php echo e($id); ?>">
                       <input type="hidden" name="type" value="<?php echo e($type); ?>">
                       <input type="hidden" name="id" id="edit_id" >
                     <div class="col-sm-12 col-md-12">
                        <div class="form-group">
                           <label class="form-label"><?php echo e(__("message.Question")); ?></label>
                           <textarea class="form-control" name="question" id="edit_question" required="" placeholder="<?php echo e(__('message.Enter Question')); ?>"></textarea>
                        </div>
                     </div>
                     <div class="col-sm-12 col-md-12">
                        <div class="form-group">
                           <label class="form-label"><?php echo e(__("message.Answer")); ?></label>
                           <textarea class="form-control" name="answer" id="edit_answer" required="" placeholder="<?php echo e(__('message.Enter Answer')); ?>"></textarea>
                        </div>
                     </div>               
                  </div>
                  <div class="modal-footer">
                     <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo e(__('message.Close')); ?></button>
                      <?php if(Session::get("is_demo")==1): ?>
                      <button type="button" class="btn btn-success" onclick="disablebtn()"><?php echo e(__('message.Save')); ?></button>
                      <?php else: ?>
                     <button type="submit" class="btn btn-success"><?php echo e(__('message.Save')); ?></button>
                       <?php endif; ?>
                  </div>
                  </form>
               </div>
            </div>
         </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/freakd1c/public_html/demo/laboratory/resources/views/admin/frq/default.blade.php ENDPATH**/ ?>