Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gammamatrix committed Dec 26, 2024
1 parent 92e4495 commit d71ba8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion resources/views/layouts/resource/detail-accordion.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
<h1 class="accordion-header" id="accordion-header-0">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#accordion-item-0"
aria-expanded="true" aria-controls="accordion-item-0">
{{ __($data->getAttributeValue($meta['info']['model_attribute'])) }}
@if (!empty($modelLabel))
@if (!empty($accordionlLabel))
{{ __(':model_label :accordion_label: :model_attribute', ['model_label' => $modelLabel, 'accordion_label' => $accordionlLabel, 'model_attribute' => $data->getAttributeValue($meta['info']['model_attribute'])]) }}
@else
{{ __(':model_label: :model_attribute', ['model_label' => $modelLabel, 'model_attribute' => $data->getAttributeValue($meta['info']['model_attribute'])]) }}
@endif
@endif
</button>
</h1>
<div id="accordion-item-0" class="accordion-collapse collapse show" aria-labelledby="accordion-header-0"
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/resource/detail-card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
@if($withCardHeader)
<div class="card-header">
@include('playground::layouts.resource.detail-actions')
<h1>{{ $data->getAttributeValue($meta['info']['model_attribute']) }}</h1>
<h1>{{ __($data->getAttributeValue($meta['info']['model_attribute'])) }}</h1>
</div>
@endif
@if ($withImage && $data && $data->image)
<div class="card-header">
<img class="card-img-top" src="{{ $data->image }}" alt="{{ $meta['info']['model_label'] }} Image">
<img class="card-img-top" src="{{ $data->image }}" alt="{{ __(':model_label Image', ['model_label' => $meta['info']['model_label']]) }}">
</div>
@endif
@if($withCardBody)
Expand Down

0 comments on commit d71ba8a

Please sign in to comment.