[0924b6c] | 1 | @extends("layouts.dashboard")
|
---|
| 2 |
|
---|
| 3 | @section("title", "Add new user - Dashboard | TechnoBlog")
|
---|
| 4 |
|
---|
| 5 | @section("dashboard_content")
|
---|
| 6 |
|
---|
| 7 | <div class="my-3 my-md-5">
|
---|
| 8 |
|
---|
| 9 | <div class="container">
|
---|
| 10 |
|
---|
| 11 | <div class="row">
|
---|
| 12 |
|
---|
| 13 | <div class="col-sm-12">
|
---|
| 14 |
|
---|
| 15 | <form class="card actionForm" action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8">
|
---|
| 16 |
|
---|
| 17 | @csrf
|
---|
| 18 |
|
---|
| 19 | <nav aria-label="breadcrumb">
|
---|
| 20 | <ol class="breadcrumb" style="border-radius: 0px !important;">
|
---|
| 21 | <li class="breadcrumb-item">
|
---|
| 22 | <a href="{{ route("dashboard.index") }}">Dashboard</a>
|
---|
| 23 | </li>
|
---|
| 24 | <li class="breadcrumb-item">
|
---|
| 25 | <a href="{{ route("dashboard.users.index") }}">Users</a>
|
---|
| 26 | </li>
|
---|
| 27 | <li class="breadcrumb-item active" aria-current="page">Add New</li>
|
---|
| 28 | </ol>
|
---|
| 29 | </nav>
|
---|
| 30 |
|
---|
| 31 | <div class="card-body">
|
---|
| 32 |
|
---|
| 33 | <h3 class="card-title border-bottom pb-4">Add new User</h3>
|
---|
| 34 |
|
---|
| 35 | <div class="row">
|
---|
| 36 |
|
---|
| 37 | <div class="col-md-4">
|
---|
| 38 | <div class="form-group">
|
---|
| 39 | <label class="form-label">Name</label>
|
---|
| 40 | <input type="text" name="name" value="{{ old('name') }}" class="form-control" placeholder="Name" required>
|
---|
| 41 | </div>
|
---|
| 42 | </div>
|
---|
| 43 |
|
---|
| 44 | <div class="col-md-4">
|
---|
| 45 | <div class="form-group">
|
---|
| 46 | <label class="form-label">Surname</label>
|
---|
| 47 | <input type="text" name="surname" value="{{ old('surname') }}" class="form-control" placeholder="Surname" required>
|
---|
| 48 | </div>
|
---|
| 49 | </div>
|
---|
| 50 |
|
---|
| 51 | <div class="col-md-4">
|
---|
| 52 | <div class="form-group">
|
---|
| 53 | <label class="form-label">E-mail</label>
|
---|
| 54 | <input type="email" name="email" value="{{ old('email') }}" class="form-control" placeholder="E-mail" required>
|
---|
| 55 | </div>
|
---|
| 56 | </div>
|
---|
| 57 |
|
---|
| 58 | <div class="col-md-4">
|
---|
| 59 | <div class="form-group">
|
---|
| 60 | <label class="form-label">Mobile Number Country Code</label>
|
---|
| 61 | <select class="selectData" id="selectWithContent" name="mobile_number_country">
|
---|
| 62 | <option value=""></option>
|
---|
| 63 | @foreach ($countries as $code => $name)
|
---|
| 64 | <option value="{{ $code }}" {{ (old("mobile_number_country") == $code) ? "selected" : "" }} data-data='{"image": "/assets/images/flags/{{ strtolower($code) }}.svg"}'>{{ $name }}</option>
|
---|
| 65 | @endforeach
|
---|
| 66 | </select>
|
---|
| 67 | </div>
|
---|
| 68 | </div>
|
---|
| 69 |
|
---|
| 70 | <div class="col-md-4">
|
---|
| 71 | <div class="form-group">
|
---|
| 72 | <label class="form-label">Mobile Number</label>
|
---|
| 73 | <input type="text" name="mobile_number" value="{{ old('mobile_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required>
|
---|
| 74 | </div>
|
---|
| 75 | </div>
|
---|
| 76 |
|
---|
| 77 | <div class="col-md-4">
|
---|
| 78 | <div class="form-group">
|
---|
| 79 | <label class="form-label">Username</label>
|
---|
| 80 | <input type="text" name="username" value="{{ old('username') }}" class="form-control" placeholder="Username" required>
|
---|
| 81 | </div>
|
---|
| 82 | </div>
|
---|
| 83 |
|
---|
| 84 | <div class="col-md-4">
|
---|
| 85 | <div class="form-group">
|
---|
| 86 | <label class="form-label">User Role</label>
|
---|
| 87 | <select class="selectData" name="userRole">
|
---|
| 88 | @foreach ($roles as $role)
|
---|
| 89 | <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ ucfirst($role->name) }}</option>
|
---|
| 90 | @endforeach
|
---|
| 91 | </select>
|
---|
| 92 | </div>
|
---|
| 93 | </div>
|
---|
| 94 | </div>
|
---|
| 95 |
|
---|
| 96 | </div>
|
---|
| 97 |
|
---|
| 98 | <div class="card-footer text-right">
|
---|
| 99 | <input type="submit" value="Create User" class="submitBtn btn btn-primary">
|
---|
| 100 | </div>
|
---|
| 101 |
|
---|
| 102 | </form>
|
---|
| 103 |
|
---|
| 104 | </div>
|
---|
| 105 |
|
---|
| 106 | </div>
|
---|
| 107 |
|
---|
| 108 | </div>
|
---|
| 109 |
|
---|
| 110 | </div>
|
---|
| 111 |
|
---|
| 112 | @endsection
|
---|