mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 16:04:10 -05:00
36 lines
1.9 KiB
PHP
36 lines
1.9 KiB
PHP
@extends('dashboard.core', [
|
|
'heading' => 'Settings'
|
|
])
|
|
|
|
@section('dashboard-body')
|
|
<input type="hidden" id="token" value="{{ csrf_token() }}" />
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12 col-md-8">
|
|
<form id="user-profile-image" class="edit-item user-profile-image">
|
|
@set('profile_image', $user->profileImage())
|
|
|
|
<div class="image-display" style="background-image: url('{{ App\User::$default_profile_image }}')">
|
|
<div class="image-display-inner" style="background-image: url('{{ $profile_image !== null ? $profile_image : App\User::$default_profile_image }}')"></div>
|
|
</div>
|
|
|
|
<div class="image-buttons">
|
|
<input id="profile-image-upload" name="profile-image-upload" type="file" />
|
|
<label for="profile-image-upload" class="image-upload-button">Upload Profile Image</label>
|
|
<span id="profile-image-delete" class="image-delete-button {{ $profile_image === null ? 'inactive' : '' }}">Delete Profile Image</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col-12 col-md-4">
|
|
<form id="user-password" class="edit-item">
|
|
<input class="text-input" type="password" name="oldpass" id="oldpass" placeholder="Old Password" value="" />
|
|
<input class="text-input" type="password" name="newpass" id="newpass" placeholder="New Password" value="" />
|
|
<input class="text-input" type="password" name="newpass_confirmation" id="newpass_confirmation" placeholder="Repeat New Password" value="" />
|
|
<button type="button" class="submit-button no-horizontal-margins btn btn-primary no-input">Update Password</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|