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 Dec 11, 2023
1 parent 15f0924 commit 2a0a93f
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions resources/views/account/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
</div>
@endif
{!! Form::open(['url' => 'account/avatar', 'files' => true]) !!}
<div class="form-group row">
{!! Form::label('avatar', 'Update Profile Image', ['class' => 'col-md-2 col-form-label']) !!}
<div class="col-md-10">
{!! Form::file('avatar', ['class' => 'form-control']) !!}
</div>
</div>
<div class="text-right">
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
<div class="form-group row">
{!! Form::label('avatar', 'Update Profile Image', ['class' => 'col-md-2 col-form-label']) !!}
<div class="col-md-10">
{!! Form::file('avatar', ['class' => 'form-control']) !!}
</div>
</div>
<div class="text-right">
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
</div>
{!! Form::close() !!}
</div>

Expand All @@ -40,21 +40,22 @@
You last changed your username on {{ Auth::user()->logs()->where('type', 'Username Change')->orderBy('created_at', 'desc')->first()->created_at->format('F jS, Y') }}.
<br />
<b>
You will be able to change your username again on {{ Auth::user()->logs()->where('type', 'Username Change')->orderBy('created_at', 'desc')->first()->created_at->addDays(config('lorekeeper.settings.username_change_cooldown'))->format('F jS, Y') }}.
You will be able to change your username again on
{{ Auth::user()->logs()->where('type', 'Username Change')->orderBy('created_at', 'desc')->first()->created_at->addDays(config('lorekeeper.settings.username_change_cooldown'))->format('F jS, Y') }}.
</b>
</div>
@endif
@endif
{!! Form::open(['url' => 'account/username']) !!}
<div class="form-group row">
<label class="col-md-2 col-form-label">Username</label>
<div class="col-md-10">
{!! Form::text('username', Auth::user()->name, ['class' => 'form-control']) !!}
</div>
</div>
<div class="text-right">
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
<div class="form-group row">
<label class="col-md-2 col-form-label">Username</label>
<div class="col-md-10">
{!! Form::text('username', Auth::user()->name, ['class' => 'form-control']) !!}
</div>
</div>
<div class="text-right">
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
</div>
{!! Form::close() !!}
</div>

Expand Down

0 comments on commit 2a0a93f

Please sign in to comment.