add.blade.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="content">
  4. <div class="row" style="min-height: 500px">
  5. <form action="{{ url('admin/designation/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/designation') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-list"></i> Designation 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('name') ? 'has-error' : '' }}">
  24. <label for="name">Designation Name <i class="text-danger">*</i></label>
  25. <input type='text' name="name" id="name" class="form-control" value="{{ old('name') }}" placeholder="Designation Name">
  26. <lebel class="text-danger"> {{ $errors->first('name') }}</lebel>
  27. </div>
  28. </div>
  29. <div class="col-md-10 col-md-offset-1" style="margin-top: 30px;">
  30. <a href="{{ url('admin/designation') }}" class="btn btn-default pull-left">
  31. <span class="btn-icon">
  32. <i class="fa fa-times"></i>
  33. </span>
  34. Cancel
  35. </a>
  36. <button type="submit" class="btn btn-inline btn-success pull-right">
  37. <span class="btn-icon">
  38. <i class="fa fa-save"></i>
  39. </span>
  40. Submit
  41. </button>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. @stop
  50. @section('script')
  51. @if(Session::has('msg'))
  52. <div class="alert alert-success center-block msg_alt" >
  53. <a class="close" data-dismiss="alert" href="#">&times;</a>
  54. <strong><i class="fa fa-check"></i></strong>&nbsp;
  55. {{Session::get('msg')}}
  56. </div>
  57. @endif
  58. @stop