profile.blade.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <head>
  2. <meta charset="utf-8">
  3. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <meta name="description" content="">
  6. <meta name="author" content="">
  7. <title>Заполните профиль</title>
  8. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"
  9. integrity="sha256-3dkvEK0WLHRJ7/Csr0BZjAWxERc5WH7bdeUya2aXxdU= sha512-+L4yy6FRcDGbXJ9mPG8MT/3UCDzwR9gPeyFNMCtInsol++5m3bk2bXWKdZjvybmohrAsn3Ua5x8gfLnbE1YkOg=="
  10. crossorigin="anonymous">
  11. <!-- Bootstrap Core CSS -->
  12. <!-- <link href="css/bootstrap.min.css" rel="stylesheet"> -->
  13. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"
  14. integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw=="
  15. crossorigin="anonymous">
  16. <!-- Custom CSS -->
  17. <style>
  18. body {
  19. padding-top: 70px;
  20. background: linear-gradient(to bottom, #00FA9A, #1E90FF);
  21. /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
  22. }
  23. .othertop {
  24. margin-top: 10px;
  25. }
  26. </style>
  27. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  28. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  29. <!--[if lt IE 9]>
  30. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  31. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  32. <![endif]-->
  33. </head>
  34. <body>
  35. <div class="container">
  36. {{--@php dump($profile) @endphp--}}
  37. @if ($errors->any())
  38. <div class="alert alert-danger">
  39. <ul>
  40. @foreach ($errors->all() as $error)
  41. <li>{{ $error }}</li>
  42. @endforeach
  43. </ul>
  44. </div>
  45. @endif
  46. <div class="row">
  47. <div class="col-md-10 ">
  48. <form class="form-horizontal" method="POST" action="{{ route('user.profile.store') }}">
  49. {{ csrf_field() }}
  50. <fieldset>
  51. <!-- Form Name -->
  52. <legend>Заполнение профиля</legend>
  53. <!-- Text input-->
  54. <div class="form-group">
  55. <label class="col-md-4 control-label" for="Name ">Имя (Name)</label>
  56. <div class="col-md-4">
  57. <div class="input-group">
  58. <div class="input-group-addon">
  59. <i class="fa fa-user">
  60. </i>
  61. </div>
  62. <input id="Имя (Name)" name="name" type="text" placeholder="Имя (Name)"
  63. class="form-control input-md" value="{{ $profile->name ?? "" }}">
  64. </div>
  65. </div>
  66. </div>
  67. <!-- Text input-->
  68. <div class="form-group">
  69. <label class="col-md-4 control-label" for="surname">Фамилия (Surname)</label>
  70. <div class="col-md-4">
  71. <div class="input-group">
  72. <div class="input-group-addon">
  73. <i class="fa fa-male" style="font-size: 20px;"></i>
  74. </div>
  75. <input id="Фамилия (Surname)" name="surname" type="text" placeholder="Фамилия (Surname)"
  76. class="form-control input-md" value="{{ $profile->surname ?? "" }}">
  77. </div>
  78. </div>
  79. </div>
  80. <!-- Multiple Radios (inline) -->
  81. <div class="form-group">
  82. <label class="col-md-4 control-label" for="Gender">Пол (Gender)</label>
  83. <div class="col-md-4">
  84. <label class="radio-inline" for="Gender-0">
  85. <input type="radio" name="gender" id="Gender-0" value="1" {{ ($profile->gender === "1") ? "checked='checked'" : "" }}>
  86. Male
  87. </label>
  88. <label class="radio-inline" for="Gender-1">
  89. <input type="radio" name="gender" id="Gender-1" value="2" {{ ($profile->gender === "2") ? "checked='checked'" : "" }}>
  90. Female
  91. </label>
  92. </div>
  93. </div>
  94. <!-- Text input-->
  95. <div class="form-group">
  96. <label class="col-md-4 control-label" for="Country">Страна (Country)</label>
  97. <div class="col-md-4">
  98. <div class="input-group">
  99. <div class="input-group-addon" >
  100. <i class="fa fa-home"></i>
  101. </div>
  102. <input id="Country" name="country" type="text" placeholder="Страна (Country)"
  103. class="form-control input-md" value="{{ $profile->country ?? "" }}">
  104. </div>
  105. </div>
  106. </div>
  107. <!-- Text input-->
  108. <div class="form-group">
  109. <label class="col-md-4 control-label" for="City">Город (City)</label>
  110. <div class="col-md-4">
  111. <div class="input-group">
  112. <div class="input-group-addon">
  113. <i class="fa fa-home"></i>
  114. </div>
  115. <input id="City" name="city" type="text" placeholder="Город (City)"
  116. class="form-control input-md" value="{{ $profile->city ?? "" }}">
  117. </div>
  118. </div>
  119. </div>
  120. <!-- Text input-->
  121. <div class="form-group">
  122. <label class="col-md-4 control-label" for="Age">Возраст (Age)</label>
  123. <div class="col-md-4">
  124. <div class="input-group">
  125. <div class="input-group-addon">
  126. <i class="fa fa-calendar"></i>
  127. </div>
  128. <input id="Age" name="age" type="text" placeholder="Возраст (Age)"
  129. class="form-control input-md" value="{{ $profile->age ?? "" }}">
  130. </div>
  131. </div>
  132. </div>
  133. <!-- Text input-->
  134. <div class="form-group">
  135. <label class="col-md-4 control-label" for="Hobby">Хобби (Hobby)</label>
  136. <div class="col-md-4">
  137. <div class="input-group">
  138. <div class="input-group-addon">
  139. <i class="fa fa-camera-retro"></i>
  140. </div>
  141. <input id="Hobby" name="hobby" type="text" placeholder="Хобби (Hobby)"
  142. class="form-control input-md" value="{{ $profile->hobby ?? "" }}">
  143. </div>
  144. </div>
  145. </div>
  146. <div class="form-group text-center">
  147. <input hidden name="user_id" value="{{ Auth::id() }}">
  148. <button type="submit" class="btn btn-primary btn-lg">
  149. Сохранить
  150. </button>
  151. </div>
  152. <div class="text-center">
  153. <button type="submit" class="btn btn-primary btn-lg">
  154. Назад
  155. </button>
  156. </div>
  157. </fieldset>
  158. </form>
  159. </div>
  160. <div class="col-md-2 hidden-xs">
  161. <img src="http://websamplenow.com/30/userprofile/images/avatar.jpg" class="img-responsive img-thumbnail ">
  162. </div>
  163. </div>
  164. </div>
  165. <!-- jQuery Version 1.11.1 -->
  166. <script src="js/jquery.js"></script>
  167. <!-- Bootstrap Core JavaScript -->
  168. <script src="js/bootstrap.min.js"></script>
  169. </body>
  170. </html>