hypothetical/resources/views/dashboard/pages/settings.blade.php

37 lines
1.9 KiB
PHP
Raw Normal View History

@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