
<div class="col-md-12">
  <div class="kt-portlet__head">
    <div class="kt-portlet__head-label">
      <h3 class="kt-portlet__head-title">Update Department</h3>
    </div>
    <div class="kt-portlet__head-toolbar">
      <div class="kt-portlet__head-wrapper">
            <a href="<?php echo $_SERVER['HTTP_REFERER'] ?>" class="btn btn-primary text-white btn-icon-sm">
          <i class="la la-long-arrow-left"></i>Back</a>
      </div>
    </div>
  </div>
  <div class="kt-portlet__body">
    <form role="form" class="kt-form" id="budgets_category_form" 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="row">
      <!-- <label class="col-md-2 control-label">Name</label>  -->
        <div class=" form-group col-sm-10">
          <?php if(count($category_data)>0): ?>
            <?php foreach($category_data as $row): ?>
              <?php if($row->id==$id): ?>
                <input type="text"  class="form-control" value="<?php echo e($row->name); ?>" name="name" placeholder="Department Name" />
              <?php endif; ?>
            <?php endforeach; ?>
          <?php endif; ?>
        </div>
        <div class="col-sm-2">
          <button class="btn btn-success waves-effect waves-light" type="submit">Submit</button>
        </div>
      </div>
    </form>
  </div>
</div>
