Skip to content

Commit

Permalink
refactor: fix blade formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne-wt authored and github-actions[bot] committed Nov 10, 2023
1 parent 54ba07d commit ecbbc12
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
20 changes: 9 additions & 11 deletions resources/views/admin/items/tags/elemental_potion.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<p>
Potions by default can only apply one element a specific object, and by default can only apply to characters.
<br />
Potions can only apply elements to characters that have less than 2 elements.
</p>

<p>
Potions by default can only apply one element a specific object, and by default can only apply to characters.
<br />
Potions can only apply elements to characters that have less than 2 elements.
</p>

<div class="form-group">
{!! Form::label('Element') !!}
{!! Form::select('element_id', $elements, $tag->getData()['element_id'], ['class' => 'form-control']) !!}
</div>

<div class="form-group">
{!! Form::label('Element') !!}
{!! Form::select('element_id', $elements, $tag->getData()['element_id'], ['class' => 'form-control']) !!}
</div>
9 changes: 7 additions & 2 deletions resources/views/inventory/_elemental_potion.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
@if($stack->first()->user_id == Auth::user()->id)
@if ($stack->first()->user_id == Auth::user()->id)
<li class="list-group-item">
<a class="card-title h5 collapse-title" data-toggle="collapse" href="#openBoxForm"> Consume Potion</a>
<div id="openBoxForm" class="collapse">
{!! Form::hidden('tag', $tag->tag) !!}
<p><b>Select a Character to apply this potion to:</b></p>
<div class="form-group">
{!! Form::select('character_id', Auth::user()->characters()->get()->pluck('fullName', 'id'), null, ['class' => 'form-control']) !!}
{!! Form::select(
'character_id',
Auth::user()->characters()->get()->pluck('fullName', 'id'),
null,
['class' => 'form-control'],
) !!}
</div>
<p>This action is not reversible. Are you sure you want to use this potion?</p>
<div class="text-right">
Expand Down

0 comments on commit ecbbc12

Please sign in to comment.