Brak opisu

profile.blade.php 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if($user->role==1)
  4. @include('local.managers.admins._navigation')
  5. @elseif($user->role==2)
  6. @include('local.managers.sCoords._navigation')
  7. @elseif($user->role==3)
  8. @include('local.managers.pCoords._navigation')
  9. @else
  10. @include('local.professors._navigation')
  11. @endif
  12. @stop
  13. @section('main')
  14. @if(!Auth::user()->office_phone)
  15. <div class="row">
  16. <div class="col-md-12">
  17. <div class="alert alert-warning">
  18. <p>
  19. Por favor actualice su información de contacto.
  20. @if($user->role==1)
  21. @elseif($user->role==2)
  22. Esta información será visible por sus coordinadores de programa y profesores de su facultad.
  23. @elseif($user->role==3)
  24. Esta información será visible por sus coordinadores de programa y coordinador/a de facultad.
  25. @else
  26. Esta información será visible por profesores de su programa, y coordinadores de su facultad.
  27. @endif
  28. </p>
  29. </div>
  30. </div>
  31. </div>
  32. @endif
  33. <div class="row">
  34. <div class="col-md-6">
  35. <div class="panel panel-default">
  36. <div class="panel-heading">
  37. <h3 class="panel-title">Account Information</h3>
  38. </div>
  39. <div class="panel-body">
  40. <div class="form-horizontal">
  41. <div class="form-group">
  42. <label for="" class="col-sm-4 control-label">Full Name</label>
  43. <div class="col-sm-8">
  44. <p class="form-control-static">{{ $user->first_name }} {{ $user->surnames }}</p>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label for="" class="col-sm-4 control-label">School</label>
  49. <div class="col-sm-8">
  50. <p class="form-control-static">
  51. <!-- If user has a school id -->
  52. @if(count($user->school))
  53. {{{ $user->school->name }}}
  54. <!-- If user has no school, but has program -->
  55. @elseif(count($user->programs))
  56. {{{ $user->programs[0]->school->name }}}
  57. <!-- If user has neither -->
  58. @else
  59. N/A
  60. @endif
  61. </p>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label for="" class="col-sm-4 control-label">Program(s)</label>
  66. <div class="col-sm-8">
  67. @if(count($user->programs))
  68. @foreach($user->programs as $program)
  69. <p class="form-control-static">
  70. {{ $program->name }}
  71. </p>
  72. @endforeach
  73. @else
  74. N/A
  75. @endif
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label for="" class="col-sm-4 control-label">Account type</label>
  80. <div class="col-sm-8">
  81. <p class="form-control-static">
  82. @if($user->role==1)
  83. Administrator
  84. @elseif($user->role==2)
  85. School Coordinator
  86. @elseif($user->role==3)
  87. Program Coordinator
  88. @else
  89. Professor
  90. @endif
  91. </p>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="panel panel-default">
  98. <div class="panel-heading">
  99. <h3 class="panel-title">Contact Information</h3>
  100. </div>
  101. <div class="panel-body">
  102. <div class="form-horizontal">
  103. <div class="form-group">
  104. <label for="" class="col-sm-4 control-label">Email</label>
  105. <div class="col-sm-8">
  106. <p class="form-control-static">{{{ $user->email }}}</p>
  107. </div>
  108. </div>
  109. <div class="form-group">
  110. <label for="" class="col-sm-4 control-label">Office Phone</label>
  111. <div class="col-sm-8">
  112. <p class="form-control-static">
  113. @if($user->office_phone)
  114. {{{ $user->office_phone }}}
  115. @if($user->office_extension)
  116. <span>ext.</span> {{{ $user->office_extension }}}
  117. @endif
  118. @else
  119. Not set
  120. @endif
  121. </p>
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label for="" class="col-sm-4 control-label">Cell Phone</label>
  126. <div class="col-sm-8">
  127. <p class="form-control-static">
  128. @if($user->cell_phone)
  129. {{{ $user->cell_phone }}}
  130. @else
  131. Not set
  132. @endif
  133. </p>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="col-md-6">
  141. <div class="panel panel-default">
  142. <div class="panel-heading">
  143. <h3 class="panel-title">Edit Contact Information</h3>
  144. </div>
  145. <div class="panel-body">
  146. {{ Form::model($user, array('action' => array('UsersController@update'), 'class'=>'form-horizontal')) }}
  147. <div class="form-group">
  148. {{ Form::label('office_phone', 'Office Phone', array('class' => 'col-md-4 control-label')) }}
  149. <div class="col-md-8">
  150. {{ Form::text('office_phone', Input::old('office_phone'), array('class'=>'form-control') )}}
  151. </div>
  152. </div>
  153. <div class="form-group">
  154. {{ Form::label('office_extension', 'Extension', array('class' => 'col-md-4 control-label')) }}
  155. <div class="col-md-8">
  156. {{ Form::text('office_extension', Input::old('office_extension'), array('class'=>'form-control') )}}
  157. </div>
  158. </div>
  159. <div class="form-group">
  160. {{ Form::label('cell_phone', 'Cell Phone', array('class' => 'col-md-4 control-label')) }}
  161. <div class="col-md-8">
  162. {{ Form::text('cell_phone', Input::old('cell_phone'), array('class'=>'form-control') )}}
  163. </div>
  164. </div>
  165. <div class="form-group">
  166. <div class="col-sm-12">
  167. {{ Form::submit('Submit', array('class'=>'btn btn-sm btn-primary pull-right', 'name'=>'submit_contact_info')) }}
  168. </div>
  169. </div>
  170. {{ Form::close() }}
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. @stop