Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt committed Dec 5, 2023
1 parent 120bfb8 commit 225c204
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion resources/views/admin/submissions/submission.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@

<h2>Characters</h2>
<div id="characters" class="mb-3">
@foreach ($submission->characters as $character)
@if (count($submission->characters()->whereRelation('character', 'deleted_at', null)->get()) != count($submission->characters()->get()))
<div class="alert alert-warning">
Some characters have been deleted since this submission was created.
</div>
@endif
@foreach ($submission->characters()->whereRelation('character', 'deleted_at', null) as $character)
@include('widgets._character_select_entry', ['characterCurrencies' => $characterCurrencies, 'items' => $items, 'tables' => $tables, 'character' => $character, 'expanded_rewards' => $expanded_rewards])
@endforeach
</div>
Expand Down
7 changes: 6 additions & 1 deletion resources/views/home/_submission_content.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@
</table>

<h2>Characters</h2>
@foreach ($submission->characters as $character)
@if (count($submission->characters()->whereRelation('character', 'deleted_at', null)->get()) != count($submission->characters()->get()))
<div class="alert alert-warning">
Some characters have been deleted since this submission was created.
</div>
@endif
@foreach ($submission->characters()->whereRelation('character', 'deleted_at', null) as $character)
<div class="submission-character-row mb-2">
<div class="submission-character-thumbnail"><a href="{{ $character->character->url }}"><img src="{{ $character->character->image->thumbnailUrl }}" class="img-thumbnail" alt="Thumbnail for {{ $character->character->fullName }}" /></a>
</div>
Expand Down

0 comments on commit 225c204

Please sign in to comment.