Skip to content

Commit

Permalink
fix(staff-staff/user-staff comments): remove unneeded @if wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt authored Sep 1, 2024
1 parent aaac35d commit 8816730
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions resources/views/comments/comments.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,41 @@
}
@endphp

@if (!isset($type) || $type == 'User-User')
<div class="row">
<div class="{{ !isset($type) || $type == 'User-User' ? 'h2' : 'hide' }}">
Comments
</div>
<div class="row">
<div class="{{ !isset($type) || $type == 'User-User' ? 'h2' : 'hide' }}">
Comments
</div>

<div class="ml-auto">
<div class="form-inline justify-content-end">
<div class="form-group ml-3 mb-3">
{!! Form::select(
'sort',
[
'newest' => 'Newest First',
'oldest' => 'Oldest First',
],
Request::get($commentType . '-sort') ?: 'newest',
['class' => 'form-control', 'id' => $commentType . '-sort'],
) !!}
</div>
<div class="form-group ml-3 mb-3">
{!! Form::select(
'perPage',
[
5 => '5 Per Page',
10 => '10 Per Page',
25 => '25 Per Page',
50 => '50 Per Page',
100 => '100 Per Page',
],
Request::get($commentType . '-perPage') ?: 5,
['class' => 'form-control', 'id' => $commentType . '-perPage'],
) !!}
</div>
<div class="ml-auto">
<div class="form-inline justify-content-end">
<div class="form-group ml-3 mb-3">
{!! Form::select(
'sort',
[
'newest' => 'Newest First',
'oldest' => 'Oldest First',
],
Request::get($commentType . '-sort') ?: 'newest',
['class' => 'form-control', 'id' => $commentType . '-sort'],
) !!}
</div>
<div class="form-group ml-3 mb-3">
{!! Form::select(
'perPage',
[
5 => '5 Per Page',
10 => '10 Per Page',
25 => '25 Per Page',
50 => '50 Per Page',
100 => '100 Per Page',
],
Request::get($commentType . '-perPage') ?: 5,
['class' => 'form-control', 'id' => $commentType . '-perPage'],
) !!}
</div>
</div>
</div>
@endif
</div>
<div id="{{ $commentType }}-comments">
<div class="justify-content-center text-center mb-2">
<i class="fas fa-spinner fa-spin fa-2x"></i>
Expand Down

0 comments on commit 8816730

Please sign in to comment.