<?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); ?>" enctype="multipart/form-data">
        
        <?php if($hold ?? ''  && $hold->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>

    <div class="form-group col-lg-6">
            <label><?php echo e(__('holds.date')); ?>  </label>
            <input type="date" name="date" class="form-control <?php echo e($errors->has('date') ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(__('holds.date')); ?>" value='<?php echo e(old("date", $hold->date ?? "")); ?>'>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('holds.time')); ?>  </label>
            <input type="time" name="time" class="form-control <?php echo e($errors->has('time') ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(__('holds.time')); ?>" value='<?php echo e(old("time", $hold->time ?? "")); ?>'>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('holds.name')); ?>  </label>
            <input type="text" name="name" class="form-control <?php echo e($errors->has('name') ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(__('holds.name')); ?>" value='<?php echo e(old("name", $hold->name ?? "")); ?>'>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('holds.email')); ?>  </label>
            <input type="email" name="email" class="form-control <?php echo e($errors->has('email') ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(__('holds.email')); ?>" value='<?php echo e(old("email", $hold->email ?? "")); ?>'>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('holds.phone')); ?>  </label>
            <input type="number" name="phone" class="form-control <?php echo e($errors->has('phone') ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(__('holds.phone')); ?>" value='<?php echo e(old("phone", $hold->phone ?? "")); ?>'>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('holds.reason')); ?>  </label>
            <select  name="type" class="form-control <?php echo e($errors->has('type') ? 'is-invalid' : ''); ?>">
                <?php $__currentLoopData = $reasons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option <?php if($hold->reason_id == $row->id): ?> selected <?php endif; ?> value="<?php echo e($row->id); ?>"> <?php echo e(reasonname($row->id)); ?> </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(__('holds.type')); ?> </label>
            <select  name="type" class="form-control <?php echo e($errors->has('type') ? 'is-invalid' : ''); ?>">
                <option <?php if($hold->type == 'reserved'): ?> selected <?php endif; ?> value="reserved"><?php echo e(__('holds.reserved')); ?></option>
                <option <?php if($hold->type == 'done'): ?> selected <?php endif; ?> value="done"><?php echo e(__('holds.done')); ?></option>
                <option <?php if($hold->type == 'absent'): ?> selected <?php endif; ?> value="absent"><?php echo e(__('holds.absent')); ?></option>
            </select>
        </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('/')); ?>/",
            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>
<?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/dr_wael/resources/views/admin/holds/form.blade.php ENDPATH**/ ?>