
<?php $__env->startSection('styles'); ?>
<style>
.control-label{
    text-align: right;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- page start-->
 <!-- Content Header (Page header) -->
 <section class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1><?php echo e(__('Edit Contact Type')); ?></h1>
        </div>
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="#"><?php echo e(__('Home')); ?></a></li>
            <li class="breadcrumb-item active"><?php echo e(__('Edit Contact Type')); ?></li>
          </ol>
        </div>
      </div>
    </div><!-- /.container-fluid -->
  </section>
  <!-- Main content -->
  <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-12">
              <div class="card">
                  <div class="card-header">
                    <h3 class="card-title"><?php echo e(__('Edit Contact Type')); ?></h3>                  
                    <span class="tools" style="float:right">
                      <a href="<?php echo e(route('contact-type.index')); ?>" title="Back" class="btn btn-primary btn-sm"><i class="fa fa-reply"></i></a>
                    </span>
                  </div>
                  <!-- /.card-header -->
                  <div class="card-body"> 
                       
                    <form class="form-horizontal" id="contact_type_edit_form" autocomplete="off" role="form" enctype="multipart/form-data" method="POST" action="<?php echo e(route('contact-type.update', $contactTypeInfo->id )); ?>">
                        <?php echo csrf_field(); ?>
                        <?php echo e(method_field('PUT')); ?>

                        <div class="form-group row <?php $__errorArgs = ['contact_type_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                            <label for="contact_type_name" class="col-sm-4 control-label"><?php echo e(__('Type Name')); ?> <span class="text-danger">*</span></label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="contact_type_name" id="contact_type_name" value="<?php echo e($contactTypeInfo->contact_type_name); ?>" placeholder="Type Name" required>
                                <?php if($errors->has('contact_type_name')): ?>
                                    <p class="text-danger"><?php echo e($errors->first('contact_type_name')); ?></p>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="form-group row <?php $__errorArgs = ['contact_type_name_ar'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                            <label for="contact_type_name_ar" class="col-sm-4 control-label"><?php echo e(__('Type Name (AR)')); ?> <span class="text-danger">*</span></label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="contact_type_name_ar" id="contact_type_name_ar" value="<?php echo e($contactTypeInfo->contact_type_name_ar); ?>" placeholder="Type Name" required>
                                <?php if($errors->has('contact_type_name_ar')): ?>
                                    <p class="text-danger"><?php echo e($errors->first('contact_type_name_ar')); ?></p>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="form-group row <?php $__errorArgs = ['contact_type_code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                            <label for="contact_type_code" class="col-sm-4 control-label"><?php echo e(__('Type Code')); ?></label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" name="contact_type_code" id="contact_type_code" value="<?php echo e($contactTypeInfo->contact_type_code); ?>" placeholder="Type Code">
                                <?php if($errors->has('contact_type_code')): ?>
                                    <p class="text-danger"><?php echo e($errors->first('contact_type_code')); ?></p>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="form-group row <?php $__errorArgs = ['status'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                            <label for="status" class="control-label col-sm-4"><?php echo e(__('Status')); ?> <span class="text-danger">*</span></label>                                
                            <div class="col-sm-5">
                              <?php echo Form::select('status', $status, $contactTypeInfo->status, ['class' => 'form-control m-bot15']); ?>

                                <?php if($errors->has('status')): ?>
                                    <p class="text-danger"><?php echo e($errors->first('status')); ?></p>
                                <?php endif; ?>
                            </div>
                        </div>
                    
                   
                        <div class="form-group row" style="text-align: center;">
                            <div class="col-sm-12">
                                <button type="submit" id="contactTypeEditBtn" class="btn btn-primary"><?php echo e(__('Update Contact Type')); ?></button>
                                <a href="<?php echo e(route('contact-type.index')); ?>" class="btn btn-warning"><?php echo e(__('Cancel')); ?></a>
                            </div>
                        </div>
                    </form>
                  </div>
              </div>
          </div>
        </div>
      </div>
  </section>

<!-- page end-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layout-admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\extranet\resources\views/pages/admin/contact-type/edit.blade.php ENDPATH**/ ?>