edit.blade.php 2.5 KB

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