<?php $__env->startSection('content'); ?>
  <article class="content items-list-page">
                    <div class="title-search-block">
                
                        <div class="title-block">
                            <div class="row">
                                <div class="col-md-6">
                                    <h3 class="title">
                   Edit <?php echo e($departments[0]['department']); ?>

                  
                </h3>
                                    <p class="title-description"> 
    
    
    <ul class='breadcrumb'>
        <li><a href="<?php echo e(URL('admin/dashboard')); ?>"><i class="fa fa-home"></i> Dashboard</a></li>
         <li><a href="<?php echo e(URL('admin/dept')); ?>"><i class="fa fa-sitemap"></i> Departments</a></li>
        <li>Edit</li>

    </ul>
</p>
                                </div>
                            </div>
                        </div>
                      
                        <?php if(count($errors) > 0): ?>
                        <div class="alert alert-danger">
                            <strong>Whoops!</strong> There were some problems with your input.<br><br>
                            <ul>
                                <?php foreach($errors->all() as $error): ?>
                                    <li><?php echo e($error); ?></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                    <?php endif; ?>

                 <?php if(Session::has('message')): ?>
                        <div class="alert alert-success">
                            <strong>  <?php echo e(Session('message')); ?> </strong>
                        </div>
                    <?php endif; ?>                        
                    </div>


					
						
  <section class="section">
                        <div class="row sameheight-container">
                           
                            <div class="col-md-12">
                                <div class="card card-block sameheight-item">
<?php if(count($departments) > 0): ?>
<?php foreach($departments as $department): ?>
<br /><br />

					<form class="form-horizontal" role="form" method="POST" action="<?php echo e(url('/admin/dept/update')); ?>">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="id" value="<?php echo e($department->id); ?> ">
						<div class="form-group">
							<label class="control-label">Department*</label>
							
								<input type="text" class="form-control underlined" name="department" value="<?php echo e($department->department); ?>">

							
						</div>

						<div class="form-group">
							<label class="control-label">Functionality*</label>
							
								<input type="text" class="form-control underlined" name="function" value="<?php echo e($department->function); ?>" >
							
						</div>

						<div class="form-group">
							
								<button type="submit" class="btn btn-primary">
								   Save 
								 </button>
								 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
							
						</div>
					</form>
<?php endforeach; ?>
<?php endif; ?>		
													                          
                                </div>
                            </div>
                        </div>
                    </section>

			
                        
                    </div>
                  
                   
                </article>
		</div>			
		</div>
		</div>
		</div>
</div></div></div>
<?php $__env->stopSection(); ?>


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