edit.blade.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="content">
  4. <div class="row" style="min-height: 500px">
  5. <form action="{{ url('admin/payroll_head/update/'.$single->id) }}" enctype="multipart/form-data" method="POST" role="form">
  6. <div class="col-md-8 col-md-offset-2">
  7. <header class="panel-heading" style="height:50px;">
  8. <div class="pull-left">
  9. {{$title}}
  10. </div>
  11. <div>
  12. @if(\Auth::user()->utype==1)
  13. <a style="margin-left: 3px" href="{{ url('admin/payroll_head') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-list"></i> Payroll Head List</a>
  14. <a style="margin-left: 3px" href="{{ url('admin/payroll_head/add') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-plus"></i> Payroll Head Add</a> <br><br>
  15. @endif
  16. </div>
  17. </header>
  18. </div>
  19. <div class="col-md-8 col-md-offset-2">
  20. <div class="panel panel-default">
  21. <div class="panel-body">
  22. {{ csrf_field() }}
  23. <div class="col-md-10 col-md-offset-1">
  24. <div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
  25. <label for="name">Head Name <i class="text-danger">*</i></label>
  26. <input type='text' name="name" id="name" class="form-control" value="{{ $single->name }}">
  27. <lebel class="text-danger"> {{ $errors->first('name') }}</lebel>
  28. </div>
  29. </div>
  30. <div class="col-md-10 col-md-offset-1" style="margin-top: 30px;">
  31. <a href="{{ url('admin/payroll_head') }}" class="btn btn-default pull-left">
  32. <span class="btn-icon">
  33. <i class="fa fa-times"></i>
  34. </span>
  35. Cancel
  36. </a>
  37. <button type="submit" class="btn btn-inline btn-success pull-right">
  38. <span class="btn-icon">
  39. <i class="fa fa-save"></i>
  40. </span>
  41. Update
  42. </button>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </form>
  48. </div>
  49. </div>
  50. @stop
  51. @section('script')
  52. @if(Session::has('msg'))
  53. <div class="alert alert-success center-block msg_alt" >
  54. <a class="close" data-dismiss="alert" href="#">&times;</a>
  55. <strong><i class="fa fa-check"></i></strong>&nbsp;
  56. {{Session::get('msg')}}
  57. </div>
  58. @endif
  59. @stop