123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- @extends('layouts.master')
- @section('content')
- <div class="content">
- <div class="row">
- <form action="{{ url('admin/permissions/update/'.$permissions->id) }}" enctype="multipart/form-data" method="POST" role="form">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <header class="panel-heading" style="height:50px;">
- <div class="pull-left">
- {{$title}}
- </div>
- <div>
- @if(\Auth::user()->utype==1)
- <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>
- @endif
- </div>
- </header>
- </div>
- <div class="col-md-12">
- <div class="panel panel-default">
- <div class="panel-body">
- {{ csrf_field() }}
- <div class="col-md-6 col-md-offset-3">
- <div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
- <label for="name">Permission Name <i class="text-danger">*</i></label>
- <input type='text' name="name" id="name" class="form-control" value="{{ $permissions->name }}" placeholder="Name">
- <lebel class="text-danger"> {{ $errors->first('name') }}</lebel>
- </div>
- <div class="form-group {{ $errors->has('display_name') ? 'has-error' : '' }}">
- <label for="display_name">Permission Name <i class="text-danger">*</i></label>
- <input type='text' name="display_name" id="display_name" class="form-control" value="{{ $permissions->display_name }}" placeholder="Display Name">
- <lebel class="text-danger"> {{ $errors->first('display_name') }}</lebel>
- </div>
- <div class="form-group pull-right">
- <label for="level_name"></label>
- <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Update</button>
- <a href="{{ url('admin/permissions') }}" class="btn btn-default">
- <i class="fa fa-times"></i> Cancel</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- @stop
- @section('script')
- @if(Session::has('msg'))
- <div class="alert alert-success center-block msg_alt" >
- <a class="close" data-dismiss="alert" href="#">×</a>
- <strong><i class="fa fa-check"></i></strong>
- {{Session::get('msg')}}
- </div>
- @endif
- @stop
|