profile.blade.php 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. @extends('layouts.master')
  2. @section('style')
  3. @endsection
  4. @section('content')
  5. @if (count($errors) > 0)
  6. <div class="alert alert-danger">
  7. <strong>Whoops!</strong> There were some problems with your input.<br><br>
  8. <ul>
  9. @foreach ($errors->all() as $error)
  10. <li>{{ $error }}</li>
  11. @endforeach
  12. </ul>
  13. </div>
  14. @endif
  15. @if ($message = Session::get('success'))
  16. <div class="alert alert-success">
  17. <p>{{ $message }}</p>
  18. </div>
  19. @endif
  20. <div class="panel">
  21. <div class="panel-body" role="document">
  22. <div class="">
  23. <div class="modal-body">
  24. <h2 class="text-center" id="gridSystemModalLabel">{{$user_info->name}}'s Profile</h2>
  25. <form role="form" action="{{url('user/update_profile')}}" method="POST" enctype="multipart/form-data">
  26. {!! csrf_field() !!}
  27. <div class="row">
  28. <div class="col-md-12">
  29. <div class="form-group pull-right">
  30. <label>Current User Image:</label>
  31. <img class="img img-responsive" style="max-height: 100px;"
  32. @if(file_exists(public_path('user/'.$user_info->image)))
  33. src="{{ asset('/public/user/'.$user_info->image) }}"
  34. @else
  35. src="{{ asset('/assets/others/default.jpg') }}"
  36. @endif
  37. >
  38. </div>
  39. <div class="form-group">
  40. <label>Change User Image:</label><br><br>
  41. <input type="file" name="user_image">
  42. </div>
  43. </div>
  44. </div>
  45. <div class="row">
  46. <div class="col-md-12">
  47. <div class="col-md-6">
  48. <div class="form-group">
  49. <label>
  50. Present Address <span style="color:red">(required *)</span>
  51. </label>
  52. <textarea class="form-control" name="address" placeholder="Enter Your Present Address" required="">{{$user_info->address}}</textarea>
  53. </div>
  54. </div>
  55. <div class="col-md-6">
  56. <div class="form-group">
  57. <label>
  58. Permanent Address <span style="color:red">(required *)</span>
  59. </label>
  60. <textarea class="form-control" name="per_address" placeholder="Enter Your Permanent Address" required="">{{$user_info->per_address}}</textarea>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="row">
  66. <div class="col-md-12">
  67. <div class="col-md-6">
  68. <div class="form-group">
  69. <label>
  70. Phone 1 <span style="color:red">(required *)</span>
  71. </label>
  72. <input name="mob" class="form-control" placeholder="Enter Your Phone Number 1" value="{{$user_info->mob}}" required="" type="text">
  73. </div>
  74. </div>
  75. <div class="col-md-6">
  76. <div class="form-group">
  77. <label>
  78. Phone 2
  79. </label>
  80. <input name="mob2" class="form-control" placeholder="Enter Your Phone Number 2" value="{{$user_info->mob2}}" type="text">
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="row">
  86. <div class="col-md-12">
  87. <div class="col-md-6">
  88. <div class="form-group">
  89. <label>
  90. Personal Email <span style="color:red">(required *)</span>
  91. </label>
  92. <input name="email" class="form-control" placeholder="Enter Your Personal Email" value="{{$user_info->email}}" required="" type="email">
  93. </div>
  94. </div>
  95. <div class="col-md-6">
  96. <div class="form-group">
  97. <label>
  98. Official Email
  99. </label>
  100. <input name="email2" class="form-control" placeholder="Official Email" value="{{$user_info->email2}}" type="email">
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="row">
  106. <div class="col-md-12">
  107. <div class="col-md-6">
  108. <div class="form-group">
  109. <label>
  110. Joining Date <span style="color:red">(required *)</span>
  111. </label>
  112. <input type="text" id="test" name="joining_date" class="form-control" placeholder="Enter Your Joining Date" value="{{$user_info->joining_date}}" required="">
  113. </div>
  114. </div>
  115. <div class="col-md-6">
  116. <div class="form-group">
  117. <label>
  118. Facebook <span style="color:red">(required *)</span>
  119. </label>
  120. <input name="fb" class="form-control" placeholder="Your Facebook Address" value="{{$user_info->fb}}" required="" type="text">
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. <div class="row">
  126. <div class="col-md-12">
  127. <div class="col-md-6">
  128. <div class="form-group">
  129. <label>
  130. Skype
  131. </label>
  132. <input type="text" name="skype" class="form-control" placeholder="Enter Your Skype Address" value="{{$user_info->skype}}" >
  133. </div>
  134. </div>
  135. <div class="col-md-6">
  136. <div class="form-group">
  137. <label>
  138. LinkedIn <span style="color:red">(required *)</span>
  139. </label>
  140. <input name="linkedIn" class="form-control" placeholder="Your LinkedIn Address" value="{{$user_info->linkedin}}" required="" type="text">
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="row">
  146. <div class="col-md-12">
  147. <div class="col-md-6">
  148. <div class="form-group">
  149. <label>
  150. Emergency Contact Person <span style="color:red">(required *)</span>
  151. </label>
  152. <input type="text" name="emrgncy_contact" class="form-control" placeholder="Enter Your Emergency Contact Person" value="{{$user_info->emrgncy_contact}}" required="">
  153. </div>
  154. </div>
  155. <div class="col-md-6">
  156. <div class="form-group">
  157. <label>
  158. Emergency Contact Person's Phone <span style="color:red">(required *)</span>
  159. </label>
  160. <input name="emrgncy_contact_phone" class="form-control" placeholder="Your Emergency Contact Person's Phone Number " value="{{$user_info->emrgncy_contact_phone}}" required="" type="text">
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="row">
  166. <div class="col-md-12">
  167. <button type="submit" class="btn btn-primary pull-right">Update Profile</button>
  168. </div>
  169. </div>
  170. </div>
  171. </form>
  172. </div>
  173. </div>
  174. </div>
  175. @endsection
  176. @section('script')
  177. <link rel="stylesheet" href="{{ URL::asset('assets/css/jquery.datetimepicker.css') }}">
  178. <script type="text/javascript" src="{{ URL::asset('assets/js/jquery.datetimepicker.full.min.js') }}"></script>
  179. <!--<script src="{{URL::asset('assets/dropzone.js')}}" type="text/javascript"></script>
  180. <script src="{{URL::asset('assets/ckeditor/ckeditor.js')}}"></script>-->
  181. <script type="text/javascript">
  182. $(document).ready(function(){
  183. $( "#test" ).datetimepicker({
  184. });
  185. //CKEDITOR.replace( 'editor1' );
  186. });
  187. </script>
  188. @endsection