1 | @extends('layouts.app')
|
---|
2 |
|
---|
3 | @section("title", "User Settings")
|
---|
4 |
|
---|
5 | @section('pageTitle', 'User Settings')
|
---|
6 |
|
---|
7 | @section('content')
|
---|
8 |
|
---|
9 | <div class="page-header">
|
---|
10 | <nav aria-label="breadcrumb" class="d-flex align-items-start">
|
---|
11 | <ol class="breadcrumb">
|
---|
12 | <li class="breadcrumb-item">
|
---|
13 | <a href="{{ url('dashboard/users') }}">Users</a>
|
---|
14 | </li>
|
---|
15 | <li class="breadcrumb-item active" aria-current="page">User Settings</li>
|
---|
16 | </ol>
|
---|
17 | </nav>
|
---|
18 | </div>
|
---|
19 |
|
---|
20 | <div class="row">
|
---|
21 | <div class="col-md-12">
|
---|
22 |
|
---|
23 | <div class="row">
|
---|
24 | <div class="col-lg-3 col-md-12 mb-3">
|
---|
25 | <div class="nav flex-lg-column flex-sm-row nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
|
---|
26 | <a class="nav-link active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Account</a>
|
---|
27 | <a class="nav-link" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Security</a>
|
---|
28 | <a class="nav-link" id="v-pills-settings-tab" data-toggle="pill" href="#v-pills-settings" role="tab" aria-controls="v-pills-settings" aria-selected="false">Social</a>
|
---|
29 | </div>
|
---|
30 | </div>
|
---|
31 | <div class="col-lg-9 col-md-12">
|
---|
32 | <div class="tab-content" id="v-pills-tabContent">
|
---|
33 | <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
|
---|
34 | <div class="card">
|
---|
35 | <div class="card-body">
|
---|
36 | <h6 class="card-title">Account</h6>
|
---|
37 | <form action="{{ route("dashboard.users.editUserData", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'>
|
---|
38 | @method("patch")
|
---|
39 | @csrf
|
---|
40 | <div class="row">
|
---|
41 | <div class="col-md-6">
|
---|
42 | <div class="form-group">
|
---|
43 | <label>Name</label>
|
---|
44 | <input type="text" name="name" value="{{ $user->name }}" class="form-control" placeholder="Name" required>
|
---|
45 | </div>
|
---|
46 | </div>
|
---|
47 | <div class="col-md-6">
|
---|
48 | <div class="form-group">
|
---|
49 | <label>Surname</label>
|
---|
50 | <input type="text" name="surname" value="{{$user->surname}}" class="form-control" placeholder="Surname" required>
|
---|
51 | </div>
|
---|
52 | </div>
|
---|
53 | </div>
|
---|
54 | <div class="row">
|
---|
55 | <div class="col-md-6">
|
---|
56 | <div class="form-group">
|
---|
57 | <label class="form-label">Mobile Number</label>
|
---|
58 | <input type="text" name="mobile_number" value="{{ $user->mobile_number }}" class="form-control" placeholder="Phone number" autocomplete="off" required>
|
---|
59 | </div>
|
---|
60 | </div>
|
---|
61 | <div class="col-md-5">
|
---|
62 | <div class="form-group">
|
---|
63 | <label>Avatar</label>
|
---|
64 | <input type="file" name="avatar" value="{{ $user->avatar }}" class="form-control" accept="image/*">
|
---|
65 | </div>
|
---|
66 | </div>
|
---|
67 | <div class="col-md-1">
|
---|
68 | <div class="form-group">
|
---|
69 | <label>Current</label>
|
---|
70 | @include('dashboard.partials.avatar')
|
---|
71 | </div>
|
---|
72 | </div>
|
---|
73 | </div>
|
---|
74 | <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10">
|
---|
75 | </form>
|
---|
76 | </div>
|
---|
77 | </div>
|
---|
78 | </div>
|
---|
79 | <div class="tab-pane fade" id="v-pills-messages" role="tabpanel" aria-labelledby="v-pills-messages-tab">
|
---|
80 | <div class="card">
|
---|
81 | <div class="card-body">
|
---|
82 | <form class="actionForm" action="{{ route("dashboard.settings.password") }}"
|
---|
83 | method="post" accept-charset="UTF-8">
|
---|
84 |
|
---|
85 | @method("patch")
|
---|
86 | @csrf
|
---|
87 |
|
---|
88 | <fieldset class="form-fieldset">
|
---|
89 |
|
---|
90 | <h4 class="font-weight-normal border-bottom pb-2">Password</h4>
|
---|
91 |
|
---|
92 | <h6 class="font-weight-normal text-muted">After changing your
|
---|
93 | password you will be logged out automatically.</h6>
|
---|
94 |
|
---|
95 | <div class="row">
|
---|
96 |
|
---|
97 | <div class="col-md-4">
|
---|
98 | <div class="form-group">
|
---|
99 | <label class="form-label">Current Password <span
|
---|
100 | class="form-required">*</span></label>
|
---|
101 | <input type="password" class="form-control"
|
---|
102 | name="current_password" autocomplete="off"
|
---|
103 | required>
|
---|
104 | </div>
|
---|
105 | </div>
|
---|
106 |
|
---|
107 | <div class="col-md-4">
|
---|
108 | <div class="form-group">
|
---|
109 | <label class="form-label">New Password <span
|
---|
110 | class="form-required">*</span></label>
|
---|
111 | <input type="password" class="form-control"
|
---|
112 | name="password" autocomplete="off" required>
|
---|
113 | </div>
|
---|
114 | </div>
|
---|
115 |
|
---|
116 | <div class="col-md-4">
|
---|
117 | <div class="form-group">
|
---|
118 | <label class="form-label">Repeat New Password <span
|
---|
119 | class="form-required">*</span></label>
|
---|
120 | <input type="password" class="form-control"
|
---|
121 | name="password_confirmation" autocomplete="off"
|
---|
122 | required>
|
---|
123 | </div>
|
---|
124 | </div>
|
---|
125 |
|
---|
126 | <div class="col-md-12">
|
---|
127 | <div class="form-group mb-0 float-right">
|
---|
128 | <input type="submit" value="Submit"
|
---|
129 | class="submitBtn btn btn-primary">
|
---|
130 | </div>
|
---|
131 | </div>
|
---|
132 |
|
---|
133 | </div>
|
---|
134 |
|
---|
135 | </fieldset>
|
---|
136 |
|
---|
137 | </form>
|
---|
138 | </div>
|
---|
139 | </div>
|
---|
140 |
|
---|
141 |
|
---|
142 | <div class="card">
|
---|
143 | <div class="card-body">
|
---|
144 | <form class="actionForm" action="{{ route("dashboard.settings.username") }}"
|
---|
145 | method="post" accept-charset="UTF-8">
|
---|
146 |
|
---|
147 | @method("patch")
|
---|
148 | @csrf
|
---|
149 |
|
---|
150 | <fieldset class="form-fieldset">
|
---|
151 |
|
---|
152 | <h4 class="font-weight-normal border-bottom pb-2">Username</h4>
|
---|
153 |
|
---|
154 | <h6 class="font-weight-normal text-muted">After changing your
|
---|
155 | username you will be logged out automatically.</h6>
|
---|
156 |
|
---|
157 | <div class="row">
|
---|
158 |
|
---|
159 |
|
---|
160 | <div class="col-md-6">
|
---|
161 | <div class="form-group">
|
---|
162 | <label class="form-label">Username</label>
|
---|
163 | <input type="text"
|
---|
164 | value="{{ old("username", $user->username) }}"
|
---|
165 | name="username" class="form-control">
|
---|
166 | </div>
|
---|
167 | </div>
|
---|
168 |
|
---|
169 | <div class="col-md-12">
|
---|
170 | <div class="form-group mb-0 float-right">
|
---|
171 | <input type="submit" value="Submit"
|
---|
172 | class="submitBtn btn btn-primary">
|
---|
173 | </div>
|
---|
174 | </div>
|
---|
175 |
|
---|
176 | </div>
|
---|
177 |
|
---|
178 | </fieldset>
|
---|
179 |
|
---|
180 | </form>
|
---|
181 |
|
---|
182 | </div>
|
---|
183 | </div>
|
---|
184 |
|
---|
185 | <div class="card">
|
---|
186 | <div class="card-body">
|
---|
187 | <form class="actionForm" action="{{ route("dashboard.settings.email") }}"
|
---|
188 | method="post" accept-charset="UTF-8">
|
---|
189 |
|
---|
190 | @method("patch")
|
---|
191 | @csrf
|
---|
192 |
|
---|
193 | <fieldset class="form-fieldset">
|
---|
194 |
|
---|
195 | <h4 class="font-weight-normal border-bottom pb-2">E-mail</h4>
|
---|
196 |
|
---|
197 | <h6 class="font-weight-normal text-muted">This is where lost
|
---|
198 | password requests will be sent. After changing your e-mail you
|
---|
199 | will be logged out automatically.</h6>
|
---|
200 |
|
---|
201 | <div class="row">
|
---|
202 |
|
---|
203 | <div class="col-md-4">
|
---|
204 | <div class="form-group">
|
---|
205 | <label class="form-label">E-mail</label>
|
---|
206 | <input type="email"
|
---|
207 | value="{{ old("email", $user->email) }}"
|
---|
208 | name="email" class="form-control">
|
---|
209 | </div>
|
---|
210 | </div>
|
---|
211 |
|
---|
212 | <div class="col-md-12">
|
---|
213 | <div class="form-group mb-0 float-right">
|
---|
214 | <input type="submit" value="Submit"
|
---|
215 | class="submitBtn btn btn-primary">
|
---|
216 | </div>
|
---|
217 | </div>
|
---|
218 |
|
---|
219 | </div>
|
---|
220 |
|
---|
221 | </fieldset>
|
---|
222 | </form>
|
---|
223 | </div>
|
---|
224 | </div>
|
---|
225 | </div>
|
---|
226 | <div class="tab-pane fade" id="v-pills-settings" role="tabpanel" aria-labelledby="v-pills-settings-tab">
|
---|
227 | <div class="card">
|
---|
228 | </div>
|
---|
229 | </div>
|
---|
230 | </div>
|
---|
231 | </div>
|
---|
232 | </div>
|
---|
233 |
|
---|
234 | </div>
|
---|
235 | </div>
|
---|
236 |
|
---|
237 | @endsection
|
---|