add.blade.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="content">
  4. <div class="row">
  5. <form action="{{ url('admin/education_level/store') }}" enctype="multipart/form-data" method="POST" role="form">
  6. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  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/education_level') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-list"></i> Education Level List</a> <br><br>
  14. @endif
  15. </div>
  16. </header>
  17. </div>
  18. <div class="col-md-12">
  19. <div class="panel panel-default">
  20. <div class="panel-body">
  21. {{ csrf_field() }}
  22. <div class="col-md-7">
  23. <div class="form-group {{ $errors->has('level_name') ? 'has-error' : '' }}">
  24. <label for="level_name">Education Level Name <i class="text-danger">*</i></label>
  25. <input type='text' name="level_name" id="level_name" class="form-control" value="{{ old('level_name') }}" placeholder="Level Name">
  26. <lebel class="text-danger"> {{ $errors->first('level_name') }}</lebel>
  27. </div>
  28. <div class="form-group pull-right">
  29. <label for="level_name"></label>
  30. <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Save data</button>
  31. <a href="{{ url('admin/education_level') }}" class="btn btn-default">
  32. <i class="fa fa-times"></i> Cancel</a>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </form>
  39. </div>
  40. </div>
  41. @stop
  42. @section('script')
  43. @if(Session::has('msg'))
  44. <div class="alert alert-success center-block msg_alt" >
  45. <a class="close" data-dismiss="alert" href="#">&times;</a>
  46. <strong><i class="fa fa-check"></i></strong>&nbsp;
  47. {{Session::get('msg')}}
  48. </div>
  49. @endif
  50. @stop