<?php $__env->startSection('content'); ?>

<?php if(session()->has('message')): ?>
    
<div dir="rtl" class="alert alert-success alert-dismissible" style="font-size:20px;font-weight:bold">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <h4><i class="icon fa fa-check"></i> <?php echo session('message'); ?> </h4>
                
              </div>
    <?php endif; ?>

<div dir="rtl" class="row" >
        <!-- left column -->
       
        <div class="col-md-8">
          <!-- general form elements -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">أضافة  دورة تدريبية </h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form   role="form" method="POST" action="<?php echo e(url('/customer/createcource ')); ?>" enctype="multipart/form-data">
                        <?php echo e(csrf_field()); ?>

              <div class="box-body">
               
                
                
              <div class="form-group">
                <label>اختار اسم الموظف</label>
                <select class="form-control select2" style="width: 100%;" name="id" id="id" required>
                  <?php foreach( $customers as $customer ): ?> 
                  <option value="<?php echo e($customer->id); ?>"><?php echo e($customer->name); ?></option>
                  <?php endforeach; ?>
                </select>
              </div>

                <div class="form-group">
                  <label for="exampleInputPassword1"> أسم الدورة </label>
                  <input type="text" name="name" class="form-control"  placeholder="أسم الدورة " required>
                </div>
                
                 
                <div   class="col-xs-6">
                    <label for="exampleInputPassword1">صورة الشهادة </label>
                    <input type="file" id="image" name="image" class="form-control"  accept="image/*"  >                  
                </div>

                <div class="col-xs-6">
                  <label for="exampleInputPassword1">تاريخ الحصول عليها</label>
                  <input type="date" name="date" class="form-control"  placeholder="البريد الألكتروني للموظف " required>
                </div>
                
                
              </div>
              <!-- /.box-body -->

              <div class="box-footer">
                <button type="submit" class="btn btn-primary"><strong>حفظ البيانات</strong></button>
              </div>
            </form>
          </div>    

        </div>
         
      </div>

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

                


<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>