diff options
Diffstat (limited to 'resources/views/profile.blade.php')
-rw-r--r-- | resources/views/profile.blade.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/resources/views/profile.blade.php b/resources/views/profile.blade.php new file mode 100644 index 0000000..e986cb7 --- /dev/null +++ b/resources/views/profile.blade.php @@ -0,0 +1,51 @@ +@extends('layouts.app') @section('content') +<div class="container"> + <div class="row"> + @if ($message = Session::get('success')) + + <div class="alert alert-success alert-block"> + + <button type="button" class="close" data-dismiss="alert">×</button> + + <strong>{{ $message }}</strong> + + </div> + + @endif @if (count($errors) > 0) + <div class="alert alert-danger"> + <strong>Whoops!</strong> There were some problems with your input. + <br> + <br> + <ul> + @foreach ($errors->all() as $error) + <li>{{ $error }}</li> + @endforeach + </ul> + </div> + @endif + </div> + <div class="row justify-content-center"> + + <div class="profile-header-container"> + <div class="profile-header-img"> + <img height="100px" width="100px" class="rounded-circle" src="/storage/avatars/{{ $user->avatar }}" /> + <!-- badge --> + <div class="rank-label-container"> + <span class="label label-default rank-label">{{$user->name}}</span> + </div> + </div> + </div> + + </div> + <div class="row justify-content-center"> + <form action="/avatar" method="post" enctype="multipart/form-data"> + @csrf + <div class="form-group"> + <input type="file" class="form-control-file" name="avatar" id="avatarFile" aria-describedby="fileHelp"> + <small id="fileHelp" class="form-text text-muted">Please upload a valid image file. Size of image should not be more than 2MB.</small> + </div> + <button type="submit" class="btn btn-primary">Submit</button> + </form> + </div> +</div> +@endsection
\ No newline at end of file |