avatar.blade.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @extends('settings.template')
  2. @section('section')
  3. <div class="title">
  4. <h3 class="font-weight-bold">Avatar Settings</h3>
  5. </div>
  6. <hr>
  7. <div class="row mt-3">
  8. <div class="col-12 col-md-4">
  9. <p class="font-weight-bold text-center">Current Avatar</p>
  10. <img src="{{Auth::user()->profile->avatarUrl()}}" class="img-thumbnail rounded-circle">
  11. </div>
  12. <div class="col-12 col-md-7 offset-md-1">
  13. <div class="card">
  14. <div class="card-header font-weight-bold bg-white">Update Avatar</div>
  15. <div class="card-body">
  16. <form method="post" enctype="multipart/form-data">
  17. @csrf
  18. <div class="form-group">
  19. <div class="custom-file">
  20. <input type="file" class="custom-file-input" id="fileInput" name="avatar" accept="image/*">
  21. <label class="custom-file-label" for="fileInput">Upload New Avatar</label>
  22. </div>
  23. <small class="form-text text-muted">
  24. Max Size: 1 MB. Supported formats: jpeg, png.
  25. </small>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="col-12 mt-5 pt-5">
  31. <hr>
  32. <div class="form-group row">
  33. <div class="col-12 text-right">
  34. {{-- <a class="btn btn-secondary font-weight-bold py-1" href="#">Restore Default Avatar</a> --}}
  35. <button type="submit" class="btn btn-primary font-weight-bold py-1">Submit</button>
  36. </div>
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. @endsection