add.blade.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="content">
  4. <div class="row" style="min-height: 500px">
  5. <form action="{{ url('admin/grade_structure/store') }}" 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 href="{{ url('admin/grade_structure') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-list"></i> Grade Structure List</a> <br><br>
  14. @endif
  15. </div>
  16. </header>
  17. </div>
  18. <div class="col-md-8 col-md-offset-2">
  19. <div class="panel panel-default">
  20. <div class="panel-body">
  21. {{ csrf_field() }}
  22. <div class="col-md-10 col-md-offset-1">
  23. <div class="form-group {{ $errors->has('grade') ? 'has-error' : '' }}">
  24. <label for="grade">Grade <i class="text-danger">*</i></label>
  25. <select name="grade" id="grade" class="form-control">
  26. <option disabled="" selected="" value="">Choice One..</option>
  27. @foreach($grade as $row)
  28. <option value="{{$row->id}}" @if (old('grade') == $row->id) selected="selected" @endif>{{$row->name}}</option>
  29. @endforeach
  30. </select>
  31. <lebel class="text-danger"> {{ $errors->first('grade') }}</lebel>
  32. </div>
  33. </div>
  34. <div class="col-md-10 col-md-offset-1">
  35. <div class="form-group {{ $errors->has('payroll_head') ? 'has-error' : '' }}">
  36. <label for="payroll_head">Payroll Head <i class="text-danger">*</i></label>
  37. <select name="payroll_head" id="payroll_head" class="form-control">
  38. <option disabled="" selected="" value="">Choice One..</option>
  39. @foreach($head as $row)
  40. <option value="{{$row->id}}" @if (old('payroll_head') == $row->id) selected="selected" @endif>{{$row->name}}</option>
  41. @endforeach
  42. </select>
  43. <lebel class="text-danger"> {{ $errors->first('payroll_head') }}</lebel>
  44. </div>
  45. </div>
  46. <div class="col-md-10 col-md-offset-1">
  47. <div class="form-group {{ $errors->has('amount') ? 'has-error' : '' }}">
  48. <label for="amount">Amount <i class="text-danger">*</i></label>
  49. <input type='text' name="amount" id="amount" class="form-control" value="{{ old('amount') }}" placeholder="Amount">
  50. <lebel class="text-danger"> {{ $errors->first('amount') }}</lebel>
  51. </div>
  52. </div>
  53. <div class="col-md-10 col-md-offset-1" style="margin-top: 30px;">
  54. <a href="{{ url('admin/grade_structure') }}" class="btn btn-default pull-left">
  55. <span class="btn-icon">
  56. <i class="fa fa-times"></i>
  57. </span>
  58. Cancel
  59. </a>
  60. <button type="submit" class="btn btn-inline btn-success pull-right">
  61. <span class="btn-icon">
  62. <i class="fa fa-save"></i>
  63. </span>
  64. Submit
  65. </button>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </form>
  71. </div>
  72. </div>
  73. @stop
  74. @section('script')
  75. @if(Session::has('msg'))
  76. <div class="alert alert-success center-block msg_alt" >
  77. <a class="close" data-dismiss="alert" href="#">&times;</a>
  78. <strong><i class="fa fa-check"></i></strong>&nbsp;
  79. {{Session::get('msg')}}
  80. </div>
  81. @endif
  82. @stop