source: resources/views/dashboard/settings/index.blade.php@ 194a359

develop
Last change on this file since 194a359 was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago

added departments, edited users and added user settings

  • Property mode set to 100644
File size: 13.0 KB
RevLine 
[194a359]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">
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>Email</label>--}}
58{{-- <input type="email" name="email" value="{{ $user->email }}" class="form-control" placeholder="E-mail" required>--}}
59{{-- </div>--}}
60{{-- </div>--}}
61 <div class="col-md-6">
62 <div class="form-group">
63 <label class="form-label">Mobile Number</label>
64 <input type="text" name="mobile_number" value="{{ $user->mobile_number }}" class="form-control" placeholder="Phone number" autocomplete="off" required>
65 </div>
66 </div>
67 </div>
68 <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10">
69 </form>
70 </div>
71 </div>
72 </div>
73 <div class="tab-pane fade" id="v-pills-messages" role="tabpanel" aria-labelledby="v-pills-messages-tab">
74 <div class="card">
75 <div class="card-body">
76 <form class="actionForm" action="{{ route("dashboard.settings.password") }}"
77 method="post" accept-charset="UTF-8">
78
79 @method("patch")
80 @csrf
81
82 <fieldset class="form-fieldset">
83
84 <h4 class="font-weight-normal border-bottom pb-2">Password</h4>
85
86 <h6 class="font-weight-normal text-muted">After changing your
87 password you will be logged out automatically.</h6>
88
89 <div class="row">
90
91 <div class="col-md-4">
92 <div class="form-group">
93 <label class="form-label">Current Password <span
94 class="form-required">*</span></label>
95 <input type="password" class="form-control"
96 name="current_password" autocomplete="off"
97 required>
98 </div>
99 </div>
100
101 <div class="col-md-4">
102 <div class="form-group">
103 <label class="form-label">New Password <span
104 class="form-required">*</span></label>
105 <input type="password" class="form-control"
106 name="password" autocomplete="off" required>
107 </div>
108 </div>
109
110 <div class="col-md-4">
111 <div class="form-group">
112 <label class="form-label">Repeat New Password <span
113 class="form-required">*</span></label>
114 <input type="password" class="form-control"
115 name="password_confirmation" autocomplete="off"
116 required>
117 </div>
118 </div>
119
120 <div class="col-md-12">
121 <div class="form-group mb-0 float-right">
122 <input type="submit" value="Submit"
123 class="submitBtn btn btn-primary">
124 </div>
125 </div>
126
127 </div>
128
129 </fieldset>
130
131 </form>
132 </div>
133 </div>
134
135
136 <div class="card">
137 <div class="card-body">
138 <form class="actionForm" action="{{ route("dashboard.settings.username") }}"
139 method="post" accept-charset="UTF-8">
140
141 @method("patch")
142 @csrf
143
144 <fieldset class="form-fieldset">
145
146 <h4 class="font-weight-normal border-bottom pb-2">Username</h4>
147
148 <h6 class="font-weight-normal text-muted">After changing your
149 username you will be logged out automatically.</h6>
150
151 <div class="row">
152
153
154 <div class="col-md-6">
155 <div class="form-group">
156 <label class="form-label">Username</label>
157 <input type="text"
158 value="{{ old("username", $user->username) }}"
159 name="username" class="form-control">
160 </div>
161 </div>
162
163 <div class="col-md-12">
164 <div class="form-group mb-0 float-right">
165 <input type="submit" value="Submit"
166 class="submitBtn btn btn-primary">
167 </div>
168 </div>
169
170 </div>
171
172 </fieldset>
173
174 </form>
175
176 </div>
177 </div>
178
179 <div class="card">
180 <div class="card-body">
181 <form class="actionForm" action="{{ route("dashboard.settings.email") }}"
182 method="post" accept-charset="UTF-8">
183
184 @method("patch")
185 @csrf
186
187 <fieldset class="form-fieldset">
188
189 <h4 class="font-weight-normal border-bottom pb-2">E-mail</h4>
190
191 <h6 class="font-weight-normal text-muted">This is where lost
192 password requests will be sent. After changing your e-mail you
193 will be logged out automatically.</h6>
194
195 <div class="row">
196
197 <div class="col-md-4">
198 <div class="form-group">
199 <label class="form-label">E-mail</label>
200 <input type="email"
201 value="{{ old("email", $user->email) }}"
202 name="email" class="form-control">
203 </div>
204 </div>
205
206 <div class="col-md-12">
207 <div class="form-group mb-0 float-right">
208 <input type="submit" value="Submit"
209 class="submitBtn btn btn-primary">
210 </div>
211 </div>
212
213 </div>
214
215 </fieldset>
216 </form>
217 </div>
218 </div>
219 </div>
220 <div class="tab-pane fade" id="v-pills-settings" role="tabpanel" aria-labelledby="v-pills-settings-tab">
221 <div class="card">
222 </div>
223 </div>
224 </div>
225 </div>
226 </div>
227
228 </div>
229 </div>
230
231@endsection
Note: See TracBrowser for help on using the repository browser.