

<?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" action="<?php echo e($action); ?>">
        <?php if($sessionreservation ?? ''  && $sessionreservation->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>

   <div class="form-group col-lg-6">
            <label><?php echo e(meta('machine', getCurrentLocale()) ?? __('sessionreservations.machine')); ?> </label>
             <select class=" selectpicker form-control <?php echo e($errors->has('machine_id') ? 'is-invalid' : ''); ?>"  data-show-subtext="true" data-live-search="true" name="machine_id">
           <option selected disabled><?php echo e(__('sessionreservations.select')); ?></option>
           <?php $__currentLoopData = $machines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
           <option  <?php if($sessionreservation ?? ''  && $sessionreservation->id): ?> <?php if($row->id == $sessionreservation->machine_id): ?> selected <?php endif; ?> <?php endif; ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
       </select>
            </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('patient', getCurrentLocale()) ?? __('sessionreservations.patient')); ?> </label>
       <select class="selectpicker form-control <?php echo e($errors->has('patient_id') ? 'is-invalid' : ''); ?>"  data-show-subtext="true" data-live-search="true" name="patient_id">
           <option selected disabled><?php echo e(__('sessionreservations.select')); ?></option>
           <?php $__currentLoopData = $patients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
           <option  <?php if($sessionreservation ?? ''  && $sessionreservation->id): ?> <?php if($row->id == $sessionreservation->patient_id): ?> selected <?php endif; ?> <?php endif; ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
       </select>
          </div>
           <div class="form-group col-lg-6">
            <label><?php echo e(meta('technical', getCurrentLocale()) ?? __('sessionreservations.technical')); ?> </label>
       <select class="selectpicker form-control <?php echo e($errors->has('technical_id') ? 'is-invalid' : ''); ?>" data-show-subtext="true" data-live-search="true" name="technical_id">
           <option selected disabled><?php echo e(__('sessionreservations.select')); ?></option>
           <?php $__currentLoopData = $technicals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
           <option  <?php if($sessionreservation ?? ''  && $sessionreservation->id): ?> <?php if($row->id == $sessionreservation->technical_id): ?> selected <?php endif; ?> <?php endif; ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
       </select>
          </div>
          
 <div class="form-group col-lg-6"> <input type="hidden" name="doctor_id" value="<?php echo e(\Auth::user()->id); ?>"></div>
  <div class="form-group col-lg-6">
            <label><?php echo e(meta('dating', getCurrentLocale()) ?? __('sessionreservations.dating')); ?> </label>
            <input type="date" class="form-control <?php echo e($errors->has('dating') ? 'is-invalid' : ''); ?>" name="dating" placeholder="<?php echo e(meta('dating', getCurrentLocale()) ??__('sessionreservations.dating')); ?>" value='<?php echo e(old("dating", $sessionreservation->dating ?? "")); ?>'/>
        </div>
        
<div class="form-group col-lg-6">
            <label><?php echo e(meta('paid', getCurrentLocale()) ?? __('sessionreservations.paid')); ?> </label>

            <input type="text" class="form-control <?php echo e($errors->has('paid') ? 'is-invalid' : ''); ?>" name="paid" placeholder="<?php echo e(meta('paid', getCurrentLocale()) ??__('sessionreservations.paid')); ?>" value='<?php echo e(old("paid", $sessionreservation->paid ?? "")); ?>'/>
      
          </div>
         <div class="form-group col-lg-6">
            <label><?php echo e(meta('remain', getCurrentLocale()) ?? __('sessionreservations.remain')); ?> </label>

            <input type="text" class="form-control <?php echo e($errors->has('remain') ? 'is-invalid' : ''); ?>" name="remain" placeholder="<?php echo e(meta('remain', getCurrentLocale()) ??__('sessionreservations.remain')); ?>" value='<?php echo e(old("remain", $sessionreservation->remain ?? "")); ?>'/>
      
          </div>
          <div class="form-group col-lg-6">
            <label><?php echo e(meta('area', getCurrentLocale()) ?? __('sessionreservations.area')); ?> </label>

            <input type="text" class="form-control <?php echo e($errors->has('area') ? 'is-invalid' : ''); ?>" name="area" placeholder="<?php echo e(meta('area', getCurrentLocale()) ??__('sessionreservations.area')); ?>" value='<?php echo e(old("area", $sessionreservation->area ?? "")); ?>'/>
      
          </div>
          <div class="form-group col-lg-12">Measurment</div>
   <div class="form-group col-lg-6">
            <label><?php echo e(meta('beforing', getCurrentLocale()) ?? __('sessionreservations.beforing')); ?> </label>

            <input type="text" class="form-control <?php echo e($errors->has('beforing') ? 'is-invalid' : ''); ?>" name="beforing" placeholder="<?php echo e(meta('beforing', getCurrentLocale()) ??__('sessionreservations.beforing')); ?>" value='<?php echo e(old("beforing", $sessionreservation->beforing ?? "")); ?>'/>
      
          </div>
          <div class="form-group col-lg-6">
            <label><?php echo e(meta('aftering', getCurrentLocale()) ?? __('sessionreservations.aftering')); ?> </label>

            <input type="text" class="form-control <?php echo e($errors->has('aftering') ? 'is-invalid' : ''); ?>" name="aftering" placeholder="<?php echo e(meta('aftering', getCurrentLocale()) ??__('sessionreservations.aftering')); ?>" value='<?php echo e(old("aftering", $sessionreservation->aftering ?? "")); ?>'/>
      
          </div>
          


        <div class="text-center mt-5 col-12">
            <button class="butn"><span><?php echo e(__('dashboard.save')); ?></span></button>
        </div>
    </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('/')); ?>/",
            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>
<?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/green_apple/resources/views/admin/sessionreservations/form.blade.php ENDPATH**/ ?>