2018-04-24 20:38:04 -04:00
|
|
|
@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">
|
2018-04-25 01:22:33 -04:00
|
|
|
<form id="user-profile-image" class="edit-item user-profile-image">
|
|
|
|
@set('profile_image', $user->profileImage())
|
2018-04-25 01:33:17 -04:00
|
|
|
@set('default_image', App\User::$default_profile_image)
|
2018-04-25 01:22:33 -04:00
|
|
|
|
2018-04-25 01:33:17 -04:00
|
|
|
<div
|
|
|
|
class="image-display"
|
|
|
|
style="background-image: url('{{ $profile_image !== null ? $profile_image : $default_image }}')"
|
|
|
|
data-default="{{ $default_image }}">
|
2018-04-25 01:22:33 -04:00
|
|
|
</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>
|
2018-04-24 20:38:04 -04:00
|
|
|
</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
|