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 | <input type="hidden" name="company_id" value="{{ $company->id }}">
|
---|
19 | <input type="hidden" name="company_owner" value="true">
|
---|
20 |
|
---|
21 | <nav aria-label="breadcrumb">
|
---|
22 | <ol class="breadcrumb" style="border-radius: 0px !important;">
|
---|
23 | <li class="breadcrumb-item">
|
---|
24 | <a href="{{ route("dashboard.index") }}">Dashboard</a>
|
---|
25 | </li>
|
---|
26 | <li class="breadcrumb-item">
|
---|
27 | <a href="{{ route("dashboard.users.index") }}">Users</a>
|
---|
28 | </li>
|
---|
29 | <li class="breadcrumb-item active" aria-current="page">Add New</li>
|
---|
30 | </ol>
|
---|
31 | </nav>
|
---|
32 |
|
---|
33 | <div class="card-body">
|
---|
34 |
|
---|
35 | <h3 class="card-title border-bottom pb-4">Add new User</h3>
|
---|
36 |
|
---|
37 | <div class="row">
|
---|
38 |
|
---|
39 | <div class="col-md-4">
|
---|
40 | <div class="form-group">
|
---|
41 | <label class="form-label">Name</label>
|
---|
42 | <input type="text" name="name" value="{{ old('name', $company->name) }}" class="form-control" placeholder="Name" required>
|
---|
43 | </div>
|
---|
44 | </div>
|
---|
45 |
|
---|
46 | <div class="col-md-4">
|
---|
47 | <div class="form-group">
|
---|
48 | <label class="form-label">Surname</label>
|
---|
49 | <input type="text" name="surname" value="{{ old('surname', 'Admin') }}" class="form-control" placeholder="Surname" required>
|
---|
50 | </div>
|
---|
51 | </div>
|
---|
52 |
|
---|
53 | <div class="col-md-4">
|
---|
54 | <div class="form-group">
|
---|
55 | <label class="form-label">E-mail</label>
|
---|
56 | <input type="email" name="email" value="{{ old('email', $company->email) }}" class="form-control" placeholder="E-mail" required>
|
---|
57 | </div>
|
---|
58 | </div>
|
---|
59 |
|
---|
60 | <div class="col-md-4">
|
---|
61 | <div class="form-group">
|
---|
62 | <label class="form-label">Mobile Number Country Code</label>
|
---|
63 | <select class="selectData" id="selectWithContent" name="mobile_number_country">
|
---|
64 | <option value=""></option>
|
---|
65 | @foreach ($countries as $code => $name)
|
---|
66 | <option value="{{ $code }}" {{ (old("mobile_number_country") == $code) ? "selected" : "" }} data-data='{"image": "/assets/images/flags/{{ strtolower($code) }}.svg"}'>{{ $name }}</option>
|
---|
67 | @endforeach
|
---|
68 | </select>
|
---|
69 | </div>
|
---|
70 | </div>
|
---|
71 |
|
---|
72 | <div class="col-md-4">
|
---|
73 | <div class="form-group">
|
---|
74 | <label class="form-label">Mobile Number</label>
|
---|
75 | <input type="text" name="mobile_number" value="{{ old('mobile_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required>
|
---|
76 | </div>
|
---|
77 | </div>
|
---|
78 |
|
---|
79 | <div class="col-md-4">
|
---|
80 | <div class="form-group">
|
---|
81 | <label class="form-label">Username</label>
|
---|
82 | <input type="text" name="username" value="{{ old('username', strtolower($company->name) . 'admin') }}" class="form-control" placeholder="Username" required>
|
---|
83 | </div>
|
---|
84 | </div>
|
---|
85 |
|
---|
86 | <div class="col-md-4">
|
---|
87 | <div class="form-group">
|
---|
88 | <label class="form-label">User Role</label>
|
---|
89 | <select class="selectData">
|
---|
90 | <option value="1" disabled selected>Admin</option>
|
---|
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
|
---|