edit.blade.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="content">
  4. <div class="row">
  5. <form action="{{ url('admin/permissions/update/'.$permissions->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/permissions') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-list"></i> Permissions 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-6 col-md-offset-3">
  23. <div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
  24. <label for="name">Permission Name <i class="text-danger">*</i></label>
  25. <input type='text' name="name" id="name" class="form-control" value="{{ $permissions->name }}" placeholder="Name">
  26. <lebel class="text-danger"> {{ $errors->first('name') }}</lebel>
  27. </div>
  28. <div class="form-group {{ $errors->has('display_name') ? 'has-error' : '' }}">
  29. <label for="display_name">Permission Name <i class="text-danger">*</i></label>
  30. <input type='text' name="display_name" id="display_name" class="form-control" value="{{ $permissions->display_name }}" placeholder="Display Name">
  31. <lebel class="text-danger"> {{ $errors->first('display_name') }}</lebel>
  32. </div>
  33. <div class="form-group pull-right">
  34. <label for="level_name"></label>
  35. <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Update</button>
  36. <a href="{{ url('admin/permissions') }}" class="btn btn-default">
  37. <i class="fa fa-times"></i> Cancel</a>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. @stop
  47. @section('script')
  48. @if(Session::has('msg'))
  49. <div class="alert alert-success center-block msg_alt" >
  50. <a class="close" data-dismiss="alert" href="#">&times;</a>
  51. <strong><i class="fa fa-check"></i></strong>&nbsp;
  52. {{Session::get('msg')}}
  53. </div>
  54. @endif
  55. @stop