33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
@extends('layouts.app')
|
|
@section('title', __('lang_v1.my_profile'))
|
|
|
|
@section('content')
|
|
<section class="content">
|
|
@include('user.profile_professional.layout', [
|
|
'profile' => $profile,
|
|
'show_user_switcher' => false,
|
|
'activities' => collect(),
|
|
])
|
|
</section>
|
|
@endsection
|
|
|
|
@section('javascript')
|
|
@include('documents_and_notes.document_and_note_js')
|
|
<script src="{{ asset('js/user-profile.js?v=' . $asset_v) }}"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#profile_photo').on('change', function() {
|
|
var file = this.files[0];
|
|
if (file) {
|
|
var reader = new FileReader();
|
|
reader.onload = function(e) {
|
|
$('#profile_photo_preview').attr('src', e.target.result);
|
|
$('.up-header-card__avatar').attr('src', e.target.result);
|
|
};
|
|
reader.readAsDataURL(file);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|