blob: c4a7db0212ac2c9b18275acd329586139d3362aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
@extends('layouts.app') @section('content')
<div class="container">
<div class="row">
<div id="avatarUploadSucceededAlert" class="alert alert-success alert-block">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong id="avatarUploadSucceededMessage"></strong>
</div>
<div id="avatarUploadFailedAlert" class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your upload - please try again.
</div>
</div>
<div class="row justify-content-center">
<div class="profile-header-container">
<div class="profile-header-img">
<img id="image-preview" height="100px" width="100px" class="rounded-circle" src="/avatar/{{ $user->id }}" />
<!-- 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 id="avatarForm">
<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
|