<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <h4 class="modal-title"><strong><i class="fa fa-edit"></i> Edit Department</strong></h4>
    </div>
    <div class="modal-body">
        <div class="portlet-body form">

            <!-- BEGIN FORM-->

            <?php echo Form::open(['method' => 'PUT','class'=>'form-horizontal','id'=>'edit_department_form']); ?>


            <div class="form-body">

                <p class="text-success">
                    Department
                </p>
                <div class="form-group">
                    <div class="col-md-12">
                        <input class="form-control form-control-inline " name="deptName" id="edit_deptName" type="text" value="<?php echo e($department->deptName); ?>" placeholder="Department" />
                    </div>

                </div>

                <div id="deptresponse">
                    <p class="text-success">
                        <strong>Designations</strong> (empty if you want to delete the designation )
                    </p>

                    <?php $i=0 ?>
                    <?php $__currentLoopData = $department->Designations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $designations): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <div class="form-group">
                            <div class="col-md-6">
                                <input class="form-control form-control-inline input-medium" name="designation[<?php echo e($i); ?>]" id="designation" type="text" value="<?php echo e($designations['designation']); ?>" placeholder="Designation #1"/>
                                <input type="hidden" name="designationID[<?php echo e($i); ?>]" id="designation" type="text" value="<?php echo e($designations['id']); ?>" placeholder="Designation #1"/>
                            </div>
                            <?php
                            $i++;
                            ?>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>

                <div id="editDestinationDiv"></div>
                <button type="button" onclick="addEditDestination()" class="btn btn-sm green form-control-inline">
                    More Designations <i class="fa fa-plus"></i>
                </button>

            </div>
            <br>
            <div class="note note-warning">
                <?php echo Lang::get('messages.deleteNoteDesignation'); ?>

            </div>

            <div class="form-actions">
                <div class="row">
                    <div class="col-md-offset-3 col-md-9">
                        <button type="button" onclick="UpdateDepartments(<?php echo e($department->id); ?>);return false;"   class="btn green"><i class="fa fa-edit"></i> Update</button>
                    </div>
                </div>
            </div>
            <?php echo Form::close(); ?>

                    <!-- END FORM-->
        </div>
    </div>
    <!-- END EXAMPLE TABLE PORTLET-->
</div>

<?php /**PATH /home/jemysunc/hrms.jemysun.co.ke/resources/views/admin/departments/edit.blade.php ENDPATH**/ ?>