|
5 | 5 | {{ getTitleContent(__('solution.solution_for_title', ['exercise' => $currentExercise->getFullTitle()])) }} |
6 | 6 | @endsection |
7 | 7 | @section('description'){{ $user->id }} - {{ __('solution.code_review') }} - {{ $user->name }} - |
8 | | - {{ __('solution.exercise') }} {{ $currentExercise->getFullTitle() }}@endsection |
| 8 | +{{ __('solution.exercise') }} {{ $currentExercise->getFullTitle() }}@endsection |
9 | 9 |
|
10 | 10 | @section('content') |
11 | 11 |
|
12 | 12 | <div class="d-flex flex-wrap justify-content-between mb-2 mb-lg-4"> |
13 | 13 | <div class="h5"> |
14 | 14 | <a href="{{ route('exercises.show', $currentExercise) }}"> |
15 | | - {{ __('solution.exercise') }} {{ $currentExercise->getFullTitle() }} |
| 15 | + {{ __('solution.exercise') }} {{ $currentExercise->getFullTitle() }} |
16 | 16 | </div> |
17 | 17 | <div class="h5"> |
18 | 18 | <a href="{{ route('users.show', $user) }}">{{ $user->name }}</a> |
|
22 | 22 | <h2 class="text-center">{{ __('solution.code_review') }}</h2> |
23 | 23 | <div class="text-center h5">{{ __('solution.sub_title') }}</div> |
24 | 24 | <hr> |
| 25 | + |
| 26 | + <div class="row no-gutters mb-3"> |
| 27 | + <div class="col-12 col-md-6 text-center"> |
| 28 | + <h5>Ваше решение</h5> |
| 29 | + </div> |
| 30 | + @if ($solutionsOfOtherUsers->isNotEmpty()) |
| 31 | + <div class="col-12 col-md-6 text-center"> |
| 32 | + <h5>Решения других пользователей</h5> |
| 33 | + </div> |
| 34 | + @endif |
| 35 | + </div> |
| 36 | + |
25 | 37 | <div class="row no-gutters"> |
26 | | - <div class="col-12 col-md p-2 p-lg-4"> |
| 38 | + <div class="col-12 col-md-6 p-2 p-lg-4"> |
27 | 39 | <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist"> |
28 | 40 | @foreach ($solutionsListForCurrentExercise as $currentSolution) |
29 | 41 | @if ($loop->first) |
30 | 42 | <li class="nav-item" role="presentation"> |
31 | 43 | <a class="nav-link active" id="pills-{{ $currentSolution->id }}-tab" data-bs-toggle="pill" |
32 | | - href="#pills-{{ $currentSolution->id }}" role="tab" aria-controls="pills-{{ $currentSolution->id }}" |
33 | | - aria-selected="true">v.{{ $loop->iteration }}</a> |
| 44 | + href="#pills-{{ $currentSolution->id }}" role="tab" aria-controls="pills-{{ $currentSolution->id }}" |
| 45 | + aria-selected="true">v.{{ $loop->iteration }}</a> |
34 | 46 | </li> |
35 | 47 | @else |
36 | 48 | <li class="nav-item" role="presentation"> |
37 | 49 | <a class="nav-link" id="pills-{{ $currentSolution->id }}-tab" data-bs-toggle="pill" |
38 | | - href="#pills-{{ $currentSolution->id }}" role="tab" aria-controls="pills-{{ $currentSolution->id }}" |
39 | | - aria-selected="true">v.{{ $loop->iteration }}</a> |
| 50 | + href="#pills-{{ $currentSolution->id }}" role="tab" aria-controls="pills-{{ $currentSolution->id }}" |
| 51 | + aria-selected="true">v.{{ $loop->iteration }}</a> |
40 | 52 | </li> |
41 | 53 | @endif |
42 | 54 | @endforeach |
|
45 | 57 | @foreach ($solutionsListForCurrentExercise as $currentSolution) |
46 | 58 | @if ($loop->first) |
47 | 59 | <div class="tab-pane fade show active" id="pills-{{ $currentSolution->id }}" role="tabpanel" |
48 | | - aria-labelledby="pills-{{ $currentSolution->id }}-tab"> |
| 60 | + aria-labelledby="pills-{{ $currentSolution->id }}-tab"> |
49 | 61 | @solution(['solution' => $currentSolution]) |
50 | 62 | </div> |
51 | 63 | @else |
52 | 64 | <div class="tab-pane fade show" id="pills-{{ $currentSolution->id }}" role="tabpanel" |
53 | | - aria-labelledby="pills-{{ $currentSolution->id }}-tab"> |
| 65 | + aria-labelledby="pills-{{ $currentSolution->id }}-tab"> |
54 | 66 | @solution(['solution' => $currentSolution]) |
55 | 67 | </div> |
56 | 68 | @endif |
57 | 69 | @endforeach |
58 | 70 | </div> |
59 | 71 | </div> |
60 | 72 |
|
61 | | - @if (count($solutionsListForCurrentExercise) > 1) |
62 | | - <div class="d-none d-md-block border-left"></div> |
63 | | - <div class="col p-2 p-lg-4"> |
| 73 | + @if ($solutionsOfOtherUsers->isNotEmpty()) |
| 74 | + <div class="col-12 col-md-6 p-2 p-lg-4"> |
| 75 | + <div class="border-start d-none d-md-block"></div> |
64 | 76 | <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist"> |
65 | | - @foreach ($solutionsListForCurrentExercise as $currentSolution) |
| 77 | + @foreach ($solutionsOfOtherUsers as $currentSolution) |
66 | 78 | @if ($loop->first) |
67 | 79 | <li class="nav-item" role="presentation"> |
68 | 80 | <a class="nav-link active" id="pills-{{ $currentSolution->id }}double-tab" data-bs-toggle="pill" |
69 | | - href="#pills-{{ $currentSolution->id }}double" role="tab" |
70 | | - aria-controls="pills-{{ $currentSolution->id }}double" |
71 | | - aria-selected="true">v.{{ $loop->iteration }}</a> |
| 81 | + href="#pills-{{ $currentSolution->id }}double" role="tab" |
| 82 | + aria-controls="pills-{{ $currentSolution->id }}double" |
| 83 | + aria-selected="true">v.{{ $loop->iteration }}</a> |
72 | 84 | </li> |
73 | 85 | @else |
74 | 86 | <li class="nav-item" role="presentation"> |
75 | 87 | <a class="nav-link" id="pills-{{ $currentSolution->id }}double-tab" data-bs-toggle="pill" |
76 | | - href="#pills-{{ $currentSolution->id }}double" role="tab" |
77 | | - aria-controls="pills-{{ $currentSolution->id }}double" |
78 | | - aria-selected="true">v.{{ $loop->iteration }}</a> |
| 88 | + href="#pills-{{ $currentSolution->id }}double" role="tab" |
| 89 | + aria-controls="pills-{{ $currentSolution->id }}double" |
| 90 | + aria-selected="true">v.{{ $loop->iteration }}</a> |
79 | 91 | </li> |
80 | 92 | @endif |
81 | 93 | @endforeach |
82 | 94 | </ul> |
83 | 95 | <div class="tab-content" id="pills-tabContent"> |
84 | | - @foreach ($solutionsListForCurrentExercise as $currentSolution) |
| 96 | + @foreach ($solutionsOfOtherUsers as $currentSolution) |
85 | 97 | @if ($loop->first) |
86 | 98 | <div class="tab-pane fade show active" id="pills-{{ $currentSolution->id }}double" role="tabpanel" |
87 | | - aria-labelledby="pills-{{ $currentSolution->id }}double-tab"> |
| 99 | + aria-labelledby="pills-{{ $currentSolution->id }}double-tab"> |
88 | 100 | @solution(['solution' => $currentSolution]) |
89 | 101 | </div> |
90 | 102 | @else |
91 | 103 | <div class="tab-pane fade show" id="pills-{{ $currentSolution->id }}double" role="tabpanel" |
92 | | - aria-labelledby="pills-{{ $currentSolution->id }}double-tab"> |
| 104 | + aria-labelledby="pills-{{ $currentSolution->id }}double-tab"> |
93 | 105 | @solution(['solution' => $currentSolution]) |
94 | 106 | </div> |
95 | 107 | @endif |
|
0 commit comments