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

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="page-header">
   <h3 class="page-title"><?php echo e(__("message.Save Parameter")); ?> </h3>
   <div class="col-sm-6">
      <?php if(__("message.Is_rtl")=='1'): ?>
      <ol class="breadcrumb float-sm-left">
      <?php else: ?>
      <ol class="breadcrumb float-sm-right">
         <?php endif; ?>
         <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.Save Parameter")); ?></li>
      </ol>
   </div>
</div>
<div class="row" style="display: flex;justify-content: center;">
   <div class="col-md-9">
      <div class="card">
         <div class="card-header">
            <h3 class="card-title"><?php echo e(__("message.Save Parameter")); ?></h3>
         </div>
         <div class="card-body p-6">
             <?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')); ?>

                 
               </div>
            </div>
            <?php endif; ?>
            <div class="panel panel-primary">
               <div class=" tab-menu-heading p-0 bg-light">
                  <div class="tabs-menu1 ">
                     <!-- Tabs --> 
                     <ul class="nav panel-tabs">
                        <li class=""><a href="#tab5" class="<?=isset($tab)&&$tab==1?'active':''?>" data-bs-toggle="tab"><?php echo e(__("message.General Information")); ?></a></li>
                        <li><a href="#tab6" data-bs-toggle="tab" class="<?=isset($tab)&&$tab==2?'active':''?>"><?php echo e(__("message.Lab Test Information")); ?></a></li>
                     </ul>
                  </div>
               </div>
               <div class="panel-body tabs-menu-body">
                  <div class="tab-content">
                     <div class="tab-pane <?=isset($tab)&&$tab==1?'active':''?>" id="tab5">
                        <form action="<?php echo e(route('save-parameter-basic-info')); ?>" method="post" enctype="multipart/form-data">
                           <?php echo e(csrf_field()); ?>

                           <input type="hidden" name="id" id="id" value="<?php echo e($id); ?>">
                           <div class="form-group">
                              <label for="name"><?php echo e(__("message.Name")); ?><span class="reqfield">*</span></label>
                              <input type="text" id="name" name="name" class="form-control" placeholder='<?php echo e(__("message.Enter Subcategory Name")); ?>' required="" value="<?php echo e(isset($data->name)?$data->name:''); ?>">
                           </div>

                           <div class="form-group">
                              <label for="short_desc"><?php echo e(__("message.Short Description")); ?><span class="reqfield">*</span></label>
                              <input type="text" id="short_desc" name="short_desc" class="form-control" placeholder='<?php echo e(__("message.Enter Short Description")); ?>' required="" value="<?php echo e(isset($data->short_desc)?$data->short_desc:''); ?>">
                           </div>
                           <div class="row">
                              <div class="form-group col-md-6">
                                 <label for="inputStatus"><?php echo e(__("message.Category")); ?><span class="reqfield">*</span></label>
                                 <select id="category_id" name="category_id" required="" class="form-control custom-select" >
                                    <option value=""><?php echo e(__("message.Select Category")); ?></option>
                                    <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($c->id); ?>" <?= isset($data->category_id)&&$c->id==$data->category_id?'selected="selected"':''?> ><?php echo e($c->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                 </select>
                              </div>
                           </div>
                           <div class="row">
                              <div class="form-group col-md-6">
                                 <label for="mrp"><?php echo e(__("message.MRP")); ?><span class="reqfield">*</span></label>
                                 <input type="number" step="0.00" id="mrp" name="mrp" class="form-control" placeholder='<?php echo e(__("message.Enter MRP")); ?>' required="" value="<?php echo e(isset($data->mrp)?$data->mrp:''); ?>">
                              </div>
                              <div class="form-group col-md-6">
                                 <label for="price"><?php echo e(__("message.Price")); ?><span class="reqfield">*</span></label>
                                 <input type="number" step="0.00" id="price" name="price" class="form-control" placeholder='<?php echo e(__("message.Enter Selling Price")); ?>' required="" value="<?php echo e(isset($data->price)?$data->price:''); ?>">
                              </div>
                           </div>
                           <div class="form-group">
                              <label for="name"><?php echo e(__("message.Description")); ?><span class="reqfield">*</span></label>
                              <textarea id="description" name="description" required class="ckeditor form-control">
                              <?php echo e(isset($data->description)?$data->description:''); ?>

                              </textarea>                           
                           </div>
                           <div class="row">
                              <div class="col-12">
                                 <?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>
                           </div>
                        </form>
                     </div>
                     <div class="tab-pane <?=isset($tab)&&$tab==2?'active':''?>" id="tab6">
                        <form action="<?php echo e(route('save-parameter-lab-info')); ?>" method="post" enctype="multipart/form-data">
                           <?php echo e(csrf_field()); ?>

                           <input type="hidden" name="id" id="id" value="<?php echo e($id); ?>">
                          
                           <div class="row">
                              <div class="form-group col-md-6">
                                 <label for="paramter_included"><?php echo e(__("message.Paramter Included")); ?><span class="reqfield">*</span></label>
                                 <input type="number" id="paramter_included" name="paramter_included" class="form-control" placeholder='<?php echo e(__("message.Enter Paramter Included")); ?>' readonly="" value="1">
                              </div>
                              <div class="form-group col-md-6">
                                 <label for="report_time"><?php echo e(__("message.Report Time")); ?><span class="reqfield">*</span></label>
                                 <input type="text" id="report_time" name="report_time" class="form-control" placeholder='<?php echo e(__("message.Enter Report Time")); ?>' required="" value="<?php echo e(isset($data->report_time)?$data->report_time:''); ?>">
                              </div>
                           </div>

                           <div class="row">
                              <div class="form-group col-md-6">
                                 <label for="sample_collection"><?php echo e(__("message.Sample Collection")); ?><span class="reqfield">*</span></label>
                                 <select id="sample_collection" name="sample_collection" class="form-control" required="" onchange="samplecollectionchange(this.value)">
                                      <option value="1" <?=isset($data->sample_collection)&&$data->sample_collection=='1'?'selected="selected"':''?> ><?php echo e(__("message.Free")); ?></option>
                                      <option value="2" <?=isset($data->sample_collection)&&$data->sample_collection=='2'?'selected="selected"':''?>><?php echo e(__("message.Paid")); ?></option>
                                 </select>
                                 
                              </div>
                              <?php if(isset($data->sample_collection_fee)): ?>
                              <div class="form-group col-md-6" id="sample_collection_fee_div">
                              <?php else: ?>
                              <div class="form-group col-md-6" id="sample_collection_fee_div" style="display:none;">
                              <?php endif; ?>
                              
                                 <label for="sample_collection_fee"><?php echo e(__("message.Sample Collection Fee")); ?><span class="reqfield">*</span></label>
                                <input type="text" id="sample_collection_fee" name="sample_collection_fee" class="form-control" placeholder='<?php echo e(__("message.Enter Sample Collection Fee")); ?>'  value="<?php echo e(isset($data->sample_collection_fee)?$data->sample_collection_fee:''); ?>">
                              </div>
                           </div>

                           <div class="row">
                              <div class="form-group col-md-6">
                                 <label for="fasting_time"><?php echo e(__("message.Is Fast Required")); ?><span class="reqfield">*</span></label>
                                 <select id="fasting_time" name="fasting_time" class="form-control" required="" onchange="fasttimedivhcnage(this.value)">
                                      <option value="0" <?=isset($data->fasting_time)&&$data->fasting_time=='0'?'selected="selected"':''?> ><?php echo e(__("message.No")); ?></option>
                                      <option value="1" <?=isset($data->fasting_time)&&$data->fasting_time=='1'?'selected="selected"':''?> ><?php echo e(__("message.Yes")); ?></option>
                                 </select>
                                 
                              </div>
                              <?php if(isset($data->fast_time)): ?>
                              <div class="form-group col-md-6" id="fast_time_div">
                              <?php else: ?>
                              <div class="form-group col-md-6" id="fast_time_div" style="display:none;">
                              <?php endif; ?>
                              
                                 <label for="fast_time"><?php echo e(__("message.Fast Time")); ?><span class="reqfield">*</span></label>
                                <input type="text" id="fast_time" name="fast_time" class="form-control" placeholder='<?php echo e(__("message.Enter Fast Time")); ?>'  value="<?php echo e(isset($data->fast_time)?$data->fast_time:''); ?>">
                              </div>
                           </div>

                           <div class="row">
                              <div class="form-group col-md-6">
                                 <label for="test_recommended_for"><?php echo e(__("message.Test Recommended For")); ?><span class="reqfield">*</span></label>
                                 <?php $arr = array(); isset($data->test_recommended_for)?$arr = explode(",",$data->test_recommended_for):''; ?>
                                 <select id="test_recommended_for" name="test_recommended_for[]" class="form-control" required="" multiple>
                                      <option value="Male" <?=isset($data->test_recommended_for)&&in_array("Male", $arr)?'selected="selected"':''?> ><?php echo e(__("message.Male")); ?></option>
                                      <option value="Female" <?=isset($data->test_recommended_for)&&in_array("Female", $arr)=='Female'?'selected="selected"':''?> ><?php echo e(__("message.Female")); ?></option>

                                 </select>
                                
                              </div>

                              <div class="form-group col-md-6">
                                 <label for="test_recommended_for_age"><?php echo e(__("message.Recommended For Age")); ?><span class="reqfield">*</span></label>
                                 <input type="text" id="test_recommended_for_age" name="test_recommended_for_age" class="form-control" placeholder='<?php echo e(__("message.Enter Age Recommended For Report")); ?>' required="" value="<?php echo e(isset($data->test_recommended_for_age)?$data->test_recommended_for_age:''); ?>">
                              </div>
                           </div>
                           <div class="form-group">
                                <label for="lab_report"><?php echo e(__("message.Sample Lab Report")); ?><span class="reqfield">*</span></label>
                                 <input type="file" id="lab_report" name="lab_report" class="form-control"  required="">
                           </div>
                         
                           
                           <div class="row">
                              <div class="col-12">
                                  <?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>
                           </div>
                        </form>
                     </div>
                     
                    
                  </div>
               </div>
            </div>
         </div>
      </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/parameter/save_parameter.blade.php ENDPATH**/ ?>