1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- @extends('admin.layout.index')
- @push('css-head')
- @endpush
- @section('content')
- <!-- Page header -->
- <div class="page-header page-header-light">
- <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
- <div class="d-flex">
- <div class="breadcrumb">
- <a href="{{url('/admin')}}" class="breadcrumb-item"><i class="icon-home2 mr-2"></i> Dashboard</a>
- <a href="{{url('/admin/admins')}}" class="breadcrumb-item"> Admins</a>
- <span class="breadcrumb-item active">Create New</span>
- </div>
- </div>
- </div>
- </div>
- <!-- /page header -->
- <!-- Content area -->
- <div class="content">
- <div class="card">
- <div class="card-body">
- @if (count($errors) > 0)
- <div class="alert alert-danger alert-no-border alert-txt-colored alert-close alert-dismissible fade show" role="alert">
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- <strong>Whoops!</strong> There were some problems with your input.
- <ul>
- @foreach ($errors->all() as $error)
- <li>{{ $error }}</li>
- @endforeach
- </ul>
- </div>
- @endif
- {!!Form::open(array('url'=>'admin/admins/store','method'=>'POST'))!!}
- <div class="form-group">
- <label>Name:</label>
- <input type="text" class="form-control" name="name" id="name" placeholder="Name" required="">
- </div>
- <div class="form-group">
- <label>Email:</label>
- <input type="email" class="form-control" name="email" id="email" placeholder="Email" required="">
- </div>
- <div class="form-group">
- <label>Role:</label>
- <select class="form-control" name="role" required="">
- <option disabled="" selected="" value="">Choose One..</option>
- @foreach($roles as $row)
- <option value="{{$row->id}}">{{$row->name}}</option>
- @endforeach
- </select>
- </div>
- <div class="form-group">
- <label>Password:</label>
- <input type="password" class="form-control" name="password" id="password" placeholder="Min Length: 6" required="">
- </div>
- <div class="form-group">
- <label>Confirm Password:</label>
- <input type="password" class="form-control" name="password_confirmation" id="password_confirmation" placeholder="Confirm Password" required="">
- </div>
- <div class="text-right">
- <a href="{{ url('admin/admins/create') }}" class="btn btn-secondary pull-left">
- Refresh
- <i class="icon-reload-alt ml-2"></i>
- </a>
- <button type="submit" class="btn btn-primary">Submit <i class="icon-paperplane ml-2"></i></button>
- </div>
- {!! Form::close() !!}
- </div>
- </div>
- </div>
- <!-- /content area -->
- @endsection
- @push('scripts')
- @endpush
|