modify.blade.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. @extends('mobile.layouts.app')
  2. @section('content')
  3. <div id="accountModify" class="container">
  4. @include('mobile.account.navTabs')
  5. <dl>
  6. <dt>회원 정보 수정</dt>
  7. <dd>{{ config('company_name') }}는 회원님의 개인정보를 신중히 취급하며, 안전한게 암호화하여 관리되고 있습니다.
  8. <dd>다양한 서비스를 받으시려면 정확한 정보를 항상 유지해 주셔야 합니다.</dd>
  9. </dl>
  10. <form name="f_account_modify" id="fAccountModify" method="post" action="{{ route('account.modify.update') }}" enctype="multipart/form-data">
  11. @csrf
  12. <hr/>
  13. <table class="table table-borderless">
  14. <colgroup>
  15. <col style="width: 15%;min-width: 90px;"/>
  16. <col style="width: auto;"/>
  17. </colgroup>
  18. <tr>
  19. <th id="tableRowspan" rowspan="5">계정</th>
  20. <td>
  21. <h6>ID</h6>
  22. {{ $user->sid }}
  23. </td>
  24. </tr>
  25. <tr>
  26. <td>
  27. <hr/>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td>
  32. <label for="nickname" class="form-label">닉네임</label>
  33. <div class="row">
  34. <div class="col">
  35. <input type="text" name="nickname" id="nickname" class="form-control" value="{{ $user->nickname }}" minlength="1" maxlength="10"/>
  36. </div>
  37. </div>
  38. @if($changeNicknameDayLeft > 0)
  39. <div class="form-text text-muted">
  40. 닉네임 변경은 {{ $changeNicknameDayLeft }}일이 지난 후 가능합니다.
  41. </div>
  42. @endif
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>
  47. <hr/>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td>
  52. <div class="row">
  53. <div class="col">
  54. <label for="email" class="form-label">이메일</label>
  55. </div>
  56. <div class="col text-end">
  57. <a href="#" id="btnChangeEmail">변경하기</a>
  58. </div>
  59. </div>
  60. <input type="text" name="email" id="email" class="form-control" value="{{ $user->email }}"/>
  61. @if($changeEmailDayLeft > 0)
  62. <div class="form-text text-muted">
  63. 이메일 변경은 {{ $changeEmailDayLeft }}일 지난 후 가능합니다.
  64. </div>
  65. @endif
  66. </td>
  67. </tr>
  68. <tr id="emailVerifyForm" hidden>
  69. <td>&nbsp;</td>
  70. </tr>
  71. <tr>
  72. <th colspan="2">
  73. <hr/>
  74. </th>
  75. </tr>
  76. <tr>
  77. <th rowspan="5">부가 기능</th>
  78. <td>
  79. <label for="thumbImg" class="form-label">프로필 이미지</label><br/>
  80. @if($user->thumb)
  81. <img src="{{ asset($user->thumb) }}" class="me-3" width="{{ $userThumbWidth }}" height="{{ $userThumbHeight }}" />
  82. <div class="form-check form-check-inline">
  83. <input type="checkbox" name="thumb_img_del" id="thumbImgDel" class="form-check-input" value="1" />
  84. <label for="thumbImgDel" class="form-check-label">삭제</label>
  85. </div>
  86. @else
  87. <div class="d-flex">
  88. <div class="flex-shrink-0">
  89. <img src="{{ asset('images/default/thumb.gif') }}" id="prevThumbImg" class="me-3" width="{{ $userThumbWidth - 20 }}" height="{{ $userThumbHeight - 20 }}" />
  90. </div>
  91. <div class="flex-grow-1">
  92. <div class="row">
  93. <div class="col">
  94. <label for="thumbImg" class="btn btn-default btn-sm">파일첨부</label>
  95. <input type="file" name="thumb_img" id="thumbImg" value="{{ old('thumb', $user->thumb) }}" accept="image/gif,image/jpeg,image/png" hidden />
  96. </div>
  97. <div class="col-auto text-end">
  98. <button type="button" id="btnCancelThumb" hidden class="btn btn-secondary btn-sm">취소</button>
  99. </div>
  100. </div>
  101. <div class="row">
  102. <div class="col">
  103. <div class="form-text text-muted">
  104. {{ THUMB_MAX_WIDTH }}px x {{ THUMB_MAX_HEIGHT }}px 에 최적화되어있습니다.<br/>gif, jpg, png 확장자만 첨부 가능합니다.
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. @endif
  111. </td>
  112. </tr>
  113. @if($useUserThumb)
  114. <tr>
  115. <td>
  116. <hr/>
  117. </td>
  118. </tr>
  119. @endif
  120. <tr>
  121. <td colspan="2">
  122. <label for="todayMessage" class="form-label">오늘의 한마디</label>
  123. <input type="text" name="today_message" id="todayMessage" class="form-control" value="{{ $user->today_message }}" maxlength="40"/>
  124. <div class="form-text text-muted">
  125. 한글 20글자, 영문 40글자 까지 입력가능합니다.(한글, 숫자, 영문, 띄어쓰기, 마침표, 쉼표만 가능)
  126. </div>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>
  131. <hr/>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>
  136. <label for="aboutMe" class="form-label">자기소개</label>
  137. <textarea name="about_me" id="aboutMe" class="form-control" rows="3" maxlength="500" placeholder="자기를 소개해주세요. (최대 500자)">{{ $user->about_me }}</textarea>
  138. <div class="form-text text-muted">
  139. 이용 규정에 어긋나는 용도로 사용시 제재의 대상이 됩니다.
  140. </div>
  141. </td>
  142. </tr>
  143. <tr>
  144. <th colspan="2">
  145. <hr/>
  146. </th>
  147. </tr>
  148. <tr>
  149. <th>공개 여부</th>
  150. <td>
  151. <div class="form-check">
  152. <input type="checkbox" name="is_open_profile" id="isOpenProfile" class="form-check-input" value="1" @if($user->is_open_profile) checked @endif/>
  153. <label for="isOpenProfile" class="form-check-label">정보 공개 여부</label>
  154. </div>
  155. <small class="form-text text-muted">회원님의 이름, 이메일, 프로필 이미지, 자기소개를 타인에게 공개합니다.</small>
  156. </td>
  157. </tr>
  158. <tr>
  159. <th colspan="2">
  160. <hr/>
  161. </th>
  162. </tr>
  163. <tr>
  164. <th>수신 여부</th>
  165. <td>
  166. <div class="form-check form-check-inline">
  167. <input type="checkbox" name="receive_email" id="receiveEmail" class="form-check-input" value="1" @if($user->receive_email) checked @endif/>
  168. <label for="receiveEmail" class="form-check-label">이메일(Email)</label>
  169. </div>
  170. <div class="form-check form-check-inline">
  171. <input type="checkbox" name="receive_sms" id="receiveSms" class="form-check-input" value="1" @if($user->receive_sms) checked @endif/>
  172. <label for="receiveSms" class="form-check-label">문자(SMS)</label>
  173. </div>
  174. <div class="form-text text-muted">
  175. 다양한 혜택과 이벤트 소식을 받아보실 수 있습니다.
  176. </div>
  177. </td>
  178. </tr>
  179. </table>
  180. <hr/>
  181. <div class="row g-2 justify-content-center mb-4">
  182. <div class="col-auto">
  183. <button type="submit" class="btn btn-success">확인</button>
  184. </div>
  185. <div class="col-auto">
  186. <a href="{{ route('account.profile') }}" class="btn btn-default">취소</a>
  187. </div>
  188. </div>
  189. </form>
  190. </div>
  191. @endsection
  192. @push('styles')
  193. <link rel="stylesheet" href="{{ asset('css/mobile/account/modify.css') }}"/>
  194. @endpush
  195. @push('scripts')
  196. <script src="{{ asset('/js/account/modify.js') }}" defer></script>
  197. @endpush