2024-07-16 08:19:16 +00:00
|
|
|
<x-adminheader title="Profile" />
|
2024-07-14 11:00:49 +00:00
|
|
|
|
|
|
|
<!-- partial -->
|
|
|
|
<div class="main-panel">
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 mt-5 col-md-6 col-lg-4 mx-auto grid-margin stretch-card">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<p class="card-title mb-0">My Profile</p>
|
|
|
|
|
|
|
|
@if (session('success'))
|
|
|
|
<div class="alert alert-success">
|
|
|
|
{{ session('success') }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (session('error'))
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
{{ session('error') }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($errors->any())
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<img src="{{ 'uploads/profiles/' . $user->picture }}"
|
|
|
|
class=" mx-auto d-block mb-2 rounded-circle" alt="profile picture" width="100px"
|
|
|
|
height="100px">
|
|
|
|
|
|
|
|
<form action="{{ URL::to('updateUser') }}" method="POST" enctype="multipart/form-data">
|
|
|
|
@csrf
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<input type="text" name="name" value="{{ $user->name }}" id="name"
|
|
|
|
placeholder="Name" class="form-control mb-2" required>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<input type="email" name="email" value="{{ $user->email }}" id="email"
|
|
|
|
placeholder="Email" class="form-control mb-2" readonly required>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<input type="file" name="file" class="form-control mb-2">
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<input type="password" name="password" value="{{ $user->password }}" id="password"
|
|
|
|
placeholder="Password" class="form-control mb-2">
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12 d-flex justify-content-center">
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-info ">Save Changes</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- content-wrapper ends -->
|
|
|
|
|
|
|
|
<x-adminfooter />
|