rbrecruiter/resources/views/dashboard/user/profile/userprofile.blade.php

221 lines
14 KiB
PHP
Raw Permalink Normal View History

@extends('adminlte::page')
2020-09-01 16:46:27 +00:00
@section('title', config('app.name') . ' | ' . __('messages.profile.profile'))
@section('content_header')
2020-09-01 16:46:27 +00:00
<h4>{{__('messages.reusable.profile')}} / {{__('messages.reusable.settings')}}</h4>
@stop
@section('css')
<link rel="stylesheet" href="/css/profile.css">
@stop
@section('js')
@if (session()->has('success'))
<script>
toastr.success("{{session('success')}}")
</script>
@elseif(session()->has('error'))
<script>
toastr.error("{{session('error')}}")
</script>
@endif
@stop
@section('content')
<div class="row">
<div class="col">
</div>
<div class="col">
<div class="card card-primary card-outline">
<div class="card-body box-profile">
<div class="text-center">
@if($profile->avatarPreference == 'gravatar')
<img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5(Auth::user()->email)}}" alt="User profile picture">
@else
<img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{Auth::user()->uuid}}" alt="User profile picture">
@endif
</div>
<h3 class="profile-username text-center">{{Auth::user()->name}}</h3>
<p class="text-muted text-center">{{$profile->profileShortBio}}</p>
<div class="text-center">
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showSingleProfile', ['user' => Auth::user()->id])}}'"><i class="fas fa-eye"></i></button>
</div>
</div>
<div class="card-footer text-center">
<a href="https://github.com/{{$github}}" class="pr-2 pl-2"><i class="fab fa-github fa-2x"></i></a>
2020-09-01 16:46:27 +00:00
<a href="#" onclick="toastr.info('{{__('messages.profile.discord_tag', ['discordTag' => $discord])}}')" class="pr-2 pl-2"><i class="fab fa-discord fa-2x"></i></a>
<a href="https://twitter.com/{{$twitter}}" class="pr-2 pl-2"><i class="fab fa-twitter fa-2x"></i></a>
<a href="https://instagram.com/{{$insta}}" class="pr-2 pl-2"><i class="fab fa-instagram fa-2x"></i></a>
</div>
<!-- /.card-body -->
</div>
</div>
<div class="col">
</div>
</div>
<form method="POST" action="{{route('saveProfileSettings')}}" id="saveProfileSettings">
@method('PATCH')
@csrf
<div class="row mt-3">
<div class="col">
<div class="card">
<div class="card-header">
2020-09-01 16:46:27 +00:00
<div class="card-title"><h3>{{__('messages.profile.basic_info')}}</h3></div>
</div>
<div class="card-body">
<div class="row">
<div class="col">
2020-09-01 16:46:27 +00:00
<label for="firstName">{{__('messages.profile.fl_name')}}</label>
<input disabled type="text" class="form-control" id="firstName" value="{{Auth::user()->name}}">
</div>
</div>
<div class="form-group mt-3">
2020-09-01 16:46:27 +00:00
<label for="shortBio">{{__('messages.profile.shortbio')}}</label>
<input type="text" name="shortBio" id="shortBio" class="form-control" value="{{$profile->profileShortBio}}">
</div>
<div class="form-group mt-3">
2020-09-01 16:46:27 +00:00
<label for="aboutMe">{{__('messages.profile.about_me')}}</label>
<textarea name="aboutMe" id="aboutMe" rows="8" class="form-control">{{$profile->profileAboutMe}}</textarea>
<p class="text-muted"><a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet">{{__('messages.vacancy.markdown')}}</a></p>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">
2020-09-01 16:46:27 +00:00
<div class="card-title"><h3>{{__('messages.profile.pref_media')}}</h3></div>
</div>
<div class="card-body">
2020-09-01 16:46:27 +00:00
<label>{{__('messages.profile.avatar_source')}} </label>
<div class="form-group mb-3">
<label>
<input type="radio" name="avatarPref" value="MOJANG" {{($profile->avatarPreference == 'crafatar') ? 'checked' : ''}}>
<img alt="Mojang Logo (Minecraft)" height="150px" width="150px" src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjUwMCIgaGVpZ2h0PSIzODQiIHZpZXdCb3g9IjAgMCAzNzggNTgiPjxwYXRoIGQ9Ik0wIDBoMTUuNjZDNy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45MS4wMi0yMC44Ni4wMlYxLjA2ek0yMzcuNzkgMS40NWMyLjEwMS0xLjM5IDUuMzctLjQyIDcuOTItLjU3IDcuNDQgMTguNzIgMTQuOTc5IDM3LjQxIDIyLjQ1IDU2LjEyLTMuNjMxLjEyLTcuMjcuMDktMTAuOS0uMDYxLTEuNjE5LTQuNTEtMy40Mi04Ljk0OS01LjA1LTEzLjQ1OS02Ljg3LS4wOS0xMy43MjktLjAyMS0yMC42MDEtLjA1MS0xLjkzIDQuNDUtMy4yMDkgOS4yNi01LjUxIDEzLjQ5LTMuNTQ5LjMxMS03LjExOS4xNDEtMTAuNjguMTNDMjIyLjkxIDM4LjUyOSAyMzAuMTUgMTkuOSAyMzcuNzkgMS40NXpNMjcxLjgxMS45NWMyLjYyOS4wMSA1LjI2LjA0IDcuODk5LjA5IDguMTQgMTEuNzMgMTYuMjI5IDIzLjUyIDI0LjYwMSAzNS4wOS4xMTktMTEuNjkuMDYtMjMuMzkuMDI5LTM1LjA5IDMuMzQtLjA3IDYuNjg5LS4xMSAxMC4wMy0uMDk
</label>
<label>
<input type="radio" name="avatarPref" value="GRAVATAR" {{($profile->avatarPreference == 'gravatar') ? 'checked' : ''}}>
<img alt="Gravatar logo" src="/img/gravatar.png">
</label>
</div>
2020-09-01 16:46:27 +00:00
<label>{{__('messages.profile.social_media')}}</label>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fab fa-github"></i></span>
</div>
2020-09-01 16:46:27 +00:00
<input name="socialGithub" type="text" class="form-control" placeholder="{{__('messages.profile.github_user')}}" value="{{$github}}">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fab fa-discord"></i></span>
</div>
2020-09-01 16:46:27 +00:00
<input name="socialDiscord" type="text" class="form-control" placeholder="{{__('messages.profile.discord_user')}}" value="{{$discord}}">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fab fa-twitter"></i></span>
</div>
2020-09-01 16:46:27 +00:00
<input name="socialTwitter" type="text" class="form-control" placeholder="{{__('messages.profile.twitter_user')}}" value="{{$twitter}}">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fab fa-instagram"></i></span>
</div>
2020-09-01 16:46:27 +00:00
<input name="socialInsta" type="text" class="form-control" placeholder="{{__('messages.profile.insta_user')}}" value="{{$insta}}">
</div>
</div>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col text-center">
2020-09-01 16:46:27 +00:00
<button type="button" class="btn btn-success" onclick="document.getElementById('saveProfileSettings').submit()">{{__('messages.profile.update_prfl')}}</button>
</div>
</div>
</form>
@stop
2020-07-16 05:46:20 +00:00
@section('footer')
@include('breadcrumbs.dashboard.footer')
@stop