employee_to_user.blade.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="content">
  4. <div class="row">
  5. <form action="{{ url('admin/employee/add_to_user/'.$employee->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-right:3px" href="{{ url('admin/employee') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-list"></i> Employee List</a>
  14. <a style="margin-right:3px" href="{{ url('admin/employee/add') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-plus"></i> Employee 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. <div class="col-md-6 col-md-offset-3">
  23. {{ csrf_field() }}
  24. <div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
  25. <label for="email">Email <i class="text-danger">*</i></label>
  26. <input type='email' name="email" id="email" class="form-control" placeholder="Full Name" value="{{$employee->personal_email }}">
  27. <lebel class="text-danger"> {{ $errors->first('email') }}</lebel>
  28. </div>
  29. <div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
  30. <label for="password">Password <i class="text-danger">*</i></label>
  31. <input type='password' name="password" id="password" class="form-control" placeholder="Password" value="{{ old('password') }}">
  32. <lebel class="text-danger"> {{ $errors->first('password') }}</lebel>
  33. </div>
  34. <div class="form-group {{ $errors->has('confirm_password') ? 'has-error' : '' }}">
  35. <label for="confirm_password">Confirm Password <i class="text-danger">*</i></label>
  36. <input type='password' name="confirm_password" id="confirm_password" class="form-control" placeholder="Confirm Password" value="{{ old('confirm_password') }}">
  37. <lebel class="text-danger"> {{ $errors->first('confirm_password') }}</lebel>
  38. </div>
  39. <div class="form-group">
  40. <label for="permission">Assign User Role* </label>
  41. <select class="form-control" name="role">
  42. <option disabled selected value>Choose One</option>
  43. @foreach($roles as $info)
  44. <option value="{{ $info->id }}">{{ $info->display_name }}</option>
  45. @endforeach
  46. </select>
  47. </div>
  48. <div class="form-group">
  49. <label></label>
  50. <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Add to user</button>
  51. <a href="{{ url('admin/employee') }}" class="btn btn-default">
  52. <i class="fa fa-times"></i> Cancel</a>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </form>
  59. </div>
  60. </div>
  61. @stop
  62. @section('script')
  63. @stop