Guest User

Untitled

a guest
Dec 18th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. $teacher = Teacher::where('branch_id', Auth::user()->branch_id);
  2.  
  3. return view('create',compact('teachers));
  4.  
  5. <div class="nav-tabs-custom" id="tabs">
  6.  
  7. <ul id="myUL" class="nav nav-tabs">
  8. @foreach($teachers as $teacher)
  9.  
  10. <li ><a href="#tab_{{ $teacher->id }}" data-toggle="tab" >{!!$teacher->name!!}</a></li>
  11. @endforeach
  12.  
  13.  
  14. </ul>
  15. <div class="tab-content">
  16. @foreach($teachers as $key => teacher)
  17.  
  18. <div class="tab-pane" id="tab_{{ $teacher->id }}">
  19. <table class="table" id="tables">
  20. <thead>
  21. <tr>
  22. <th></th>
  23. <th colspan="5"></th>
  24. <th></th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. @foreach($teacher->students as $std)
  29. <tr>
  30. <td>
  31. <td>{{$std->name }}</td>
  32. </tr>
  33. @endforeach
  34. </tbody>
  35. </table>
  36. {{$teacher->stduents->links()}}
  37. </div>
  38. @endforeach
  39. </div>
  40.  
  41. </div>
  42.  
  43. </div>
Add Comment
Please, Sign In to add comment