add.blade.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @extends('admin.layout.index')
  2. @push('css-head')
  3. @endpush
  4. @section('content')
  5. <!-- Page header -->
  6. <div class="page-header page-header-light">
  7. <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
  8. <div class="d-flex">
  9. <div class="breadcrumb">
  10. <a href="{{url('/admin')}}" class="breadcrumb-item"><i class="icon-home2 mr-2"></i> Dashboard</a>
  11. <a href="{{url('/admin/admins')}}" class="breadcrumb-item"> Admins</a>
  12. <span class="breadcrumb-item active">Create New</span>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <!-- /page header -->
  18. <!-- Content area -->
  19. <div class="content">
  20. <div class="card">
  21. <div class="card-body">
  22. @if (count($errors) > 0)
  23. <div class="alert alert-danger alert-no-border alert-txt-colored alert-close alert-dismissible fade show" role="alert">
  24. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  25. <span aria-hidden="true">×</span>
  26. </button>
  27. <strong>Whoops!</strong> There were some problems with your input.
  28. <ul>
  29. @foreach ($errors->all() as $error)
  30. <li>{{ $error }}</li>
  31. @endforeach
  32. </ul>
  33. </div>
  34. @endif
  35. {!!Form::open(array('url'=>'admin/admins/store','method'=>'POST'))!!}
  36. <div class="form-group">
  37. <label>Name:</label>
  38. <input type="text" class="form-control" name="name" id="name" placeholder="Name" required="">
  39. </div>
  40. <div class="form-group">
  41. <label>Email:</label>
  42. <input type="email" class="form-control" name="email" id="email" placeholder="Email" required="">
  43. </div>
  44. <div class="form-group">
  45. <label>Role:</label>
  46. <select class="form-control" name="role" required="">
  47. <option disabled="" selected="" value="">Choose One..</option>
  48. @foreach($roles as $row)
  49. <option value="{{$row->id}}">{{$row->name}}</option>
  50. @endforeach
  51. </select>
  52. </div>
  53. <div class="form-group">
  54. <label>Password:</label>
  55. <input type="password" class="form-control" name="password" id="password" placeholder="Min Length: 6" required="">
  56. </div>
  57. <div class="form-group">
  58. <label>Confirm Password:</label>
  59. <input type="password" class="form-control" name="password_confirmation" id="password_confirmation" placeholder="Confirm Password" required="">
  60. </div>
  61. <div class="text-right">
  62. <a href="{{ url('admin/admins/create') }}" class="btn btn-secondary pull-left">
  63. Refresh
  64. <i class="icon-reload-alt ml-2"></i>
  65. </a>
  66. <button type="submit" class="btn btn-primary">Submit <i class="icon-paperplane ml-2"></i></button>
  67. </div>
  68. {!! Form::close() !!}
  69. </div>
  70. </div>
  71. </div>
  72. <!-- /content area -->
  73. @endsection
  74. @push('scripts')
  75. @endpush