Refactor article getter for descriptions & tags, minor fixes on tags
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
{{ $article['name'] ?? null }}
|
||||
</div>
|
||||
<div class="col-3" class="text-right">
|
||||
{!! $article['image'] !!}
|
||||
<img src="{{ $article['image'] }}" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="col-12">
|
||||
{{ Form::label('categories', __('shop.shelves.title')) }}<br>
|
||||
@foreach (($article['categories'] ?? null) as $category)
|
||||
{{ $category }}
|
||||
<span class="btn btn-xs btn-success pb-2">{{ $category }}</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@@ -42,7 +42,7 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
{!! $article['description'] ?? null !!}
|
||||
{!! $article['description']['description'] ?? null !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user