<?php $__env->startSection('content'); ?>
<?php if(session()->has('message')): ?>
<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
<div class="col-md-4 alert alert-success alert-dismissible" style="font-size:18px;font-weight:bold;width:400px;margin-left:15px">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <?php echo session('message'); ?>

              </div>
              </div> 
<?php endif; ?>

<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
        <div class="col-md-8">
          <!-- general form elements -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">Edit Customer  </h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form   role="form" method="POST" action="<?php echo e(url('/customer/edit')); ?>">
                        <?php echo e(csrf_field()); ?>

              <div class="box-body">
                
                
                 


                <div class="form-group">
                  <label for="exampleInputPassword1">Customer Name - الاسم</label>
                  <input type="text" name="name" value="<?php echo e($customer->name); ?>" class="form-control"  placeholder="Customer Name - الاسم " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">Customer Address - العنوان</label>
                  <input type="text" name="address" value="<?php echo e($customer->address); ?>" class="form-control"  placeholder="Customer Address - العنوان " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">Customer Phone - رقم الهاتف </label>
                  <input type="text" name="phone" value="<?php echo e($customer->phone); ?>" class="form-control"  placeholder="Customer Phone - رقم الهاتف " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">Customer Fax - الفاكس</label>
                  <input type="text" name="fax" value="<?php echo e($customer->fax); ?>" class="form-control"  placeholder="Customer Fax - الفاكس " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">Customer Email - الايميل</label>
                  <input type="text" name="email" value="<?php echo e($customer->email); ?>" class="form-control"  placeholder="Customer Email - الايميل " required>
                </div>





                <div class="form-group">
                  <label for="exampleInputPassword1">Responsable Name -  اسم المسؤل </label>
                  <input type="text" name="responsable_name" value="<?php echo e($customer->responsable_name); ?>" class="form-control"  placeholder="Environmental Response - المسؤل البيئي " required>
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">Response Position - دور المسؤل</label>
                  <input type="text" name="responsable_position"  value="<?php echo e($customer->responsable_position); ?>" class="form-control"  placeholder="Response Position - دور المسؤل " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">Response Phone - رقم الهاتف المسؤل</label>
                  <input type="text" name="responsable_phone"  value="<?php echo e($customer->responsable_phone); ?>" class="form-control"  placeholder="Response Phone - رقم الهاتف المسؤل " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">Response Email - ايميل المسؤل</label>
                  <input type="text" name="responsable_email" value="<?php echo e($customer->responsable_email); ?>" class="form-control"  placeholder="Response Email - ايميل المسؤل " required>
                </div>


                <div class="form-group">
                  <label for="exampleInputPassword1">Commertial Registration No - رقم التسجيل التجاري</label>
                  <input type="text" name="commertial_registration_no" value="<?php echo e($customer->commertial_registration_no); ?>" class="form-control"  placeholder="Commertial Registration No - رقم التسجيل التجاري " required>
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">Tax Card No - رقم الضريبي</label>
                  <input type="text" name="tax_card_no" value="<?php echo e($customer->tax_card_no); ?>" class="form-control"  placeholder="Tax Card No - رقم الضريبي " required>
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">Operating Licence No - رخصة التشغيل</label>
                  <input type="text" name="operating_licence_no" value="<?php echo e($customer->operating_licence_no); ?>" class="form-control"  placeholder="Operating Licence No - رخصة التشغيل " required>
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">Industrial Registration No - رقم التسجيل الصناعي</label>
                  <input type="text" name="industrial_registration_no" value="<?php echo e($customer->industrial_registration_no); ?>" class="form-control"  placeholder="Industrial Registration No - رقم التسجيل الصناعي " required>
                </div>

                
                <div class="form-group">
                  <label for="exampleInputPassword1">Activity - النشاط</label>
                  <input type="text" name="activity" value="<?php echo e($customer->activity); ?>" class="form-control"  placeholder="Activity - النشاط " required>
                </div>
                
                <div class="form-group">
                  <label for="exampleInputPassword1"> Environmental approve num - رقم الموافقة البيئي   </label>
                  <input type="text" name="env_approve_nom" value="<?php echo e($customer->env_approve_nom); ?>" class="form-control"  placeholder="Environmental approve num - رقم الموافقة البيئي" required>
                </div>

                <div class="form-group">
                <label>Industrial City - المدينة الصناعية</label>
                <select class="form-control select2" style="width: 100%;" name="industrial_city_id" id="industrial_city_id" required>
                  <?php foreach( $citys as $city ): ?> 
                  <option value="<?php echo e($city->id); ?>" <?php echo e($customer->industrial_city_id == $city->id ? 'selected' : ''); ?>><?php echo e($city->name); ?></option>
                  <?php endforeach; ?>
                </select>
                </div>

               <input type="hidden" name="customer_id" value="<?php echo e($customer->id); ?>" class="form-control"  placeholder="اسم القطاع" required>
              </div>
              <!-- /.box-body -->

              <div class="box-footer">
                <button type="submit" class="btn btn-success">Save</button>
              </div>
            </form>
          </div>    
</div>
         
      </div>

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