Skip to content

Commit

Permalink
fix edit
Browse files Browse the repository at this point in the history
  • Loading branch information
FlamesONE committed Jun 1, 2024
1 parent 121d981 commit 420ebb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Resources/Views/admin/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
</div>
<div class="col-sm-9">
<input name="published_at" id="published_at" placeholder="@t('news.admin.published_at_placeholder')" type="datetime-local"
class="form-control" value="{{ $new->published_at->format('Y-m-d\TH:i:s') }}" max="2099-12-23T19:37:29">
class="form-control"
@if ($new->published_at) value="{{ $new->published_at->format('Y-m-d\TH:i:s') }}" @endif
max="2099-12-23T19:37:29">
</div>
</div>

Expand Down

0 comments on commit 420ebb2

Please sign in to comment.