Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $teacher = Teacher::where('branch_id', Auth::user()->branch_id);
- return view('create',compact('teachers));
- <div class="nav-tabs-custom" id="tabs">
- <ul id="myUL" class="nav nav-tabs">
- @foreach($teachers as $teacher)
- <li ><a href="#tab_{{ $teacher->id }}" data-toggle="tab" >{!!$teacher->name!!}</a></li>
- @endforeach
- </ul>
- <div class="tab-content">
- @foreach($teachers as $key => teacher)
- <div class="tab-pane" id="tab_{{ $teacher->id }}">
- <table class="table" id="tables">
- <thead>
- <tr>
- <th></th>
- <th colspan="5"></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- @foreach($teacher->students as $std)
- <tr>
- <td>
- <td>{{$std->name }}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {{$teacher->stduents->links()}}
- </div>
- @endforeach
- </div>
- </div>
- </div>
Add Comment
Please, Sign In to add comment