
<div class="col-md-6">
  <h4 class="m-t-0 header-title"><b>Update Department</b></h4>
  <hr>
  <form role="form" class="form-horizontal" action="<?php echo e(url('budgets/categories/update_category/'.$id)); ?>" method="post"> 
   
	<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
    <input type="hidden" value="<?php echo e(Auth::user()->company_id); ?>" name="company_id" />
    <div class="form-group">
     <!-- <label class="col-md-2 control-label">Name</label>  -->
      <div class="col-md-8">
	     <?php if(count($category_data)>0): ?>
        <?php foreach($category_data as $row): ?>
	     <?php if($row->id==$id): ?>
        <input type="text" class="form-control" name="name"  value="<?php echo $row->name ;?>" placeholder="Department Name" >
        <?php endif; ?>
		<?php endforeach; ?>
        <?php endif; ?>
	  </div>
      <button class="btn btn-success waves-effect waves-light" type="submit">Update</button>
    </div>
   
</div>
