<div class="d-flex w-100 align-items-center">
    <div
        class="flex-grow-1"
        @if ($record->class && strlen($record->readme))
        href="#"
        data-toggle="modal"
        data-target="#extension-modal-{{ $record->extension_id }}"
        role="button"
        @endif
    >
        <span class="extension-name font-weight-bold @unless($record->class) text-muted @endunless">
            @unless ($record->class)<s>{{ $record->title }}</s>@else{{ $record->title }}@endunless
        </span>&nbsp;&nbsp;
        <span class="small text-muted">{{ $record->version }}</span>
        <p class="extension-desc mb-0 text-muted">{{ $record->description }}</p>
    </div>
    <div class="text-muted text-right small">
        <b>@lang('system::lang.extensions.text_author')</b><br/>
        {{ $record->meta['author'] ?? '' }}
    </div>
</div>
@if ($record->class && strlen($record->readme))
    <div
        id="extension-modal-{{ $record->extension_id }}"
        class="modal show"
        tabindex="-1"
        role="dialog"
    >
        <div class="modal-dialog modal-dialog-scrollable modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">{{ $record->title }}</h4>
                    @isset($record->meta['homepage'])
                        <button type="button" class="close">
                            <a href="{{ $record->meta['homepage']}}"><i class="fa fa-external-link"></i></a>
                        </button>
                    @endisset
                </div>
                <div class="modal-body bg-light markdown">
                    {!! $record->readme !!}
                </div>
            </div>
        </div>
    </div>
@endif
