@if ($item->html->count() == 0) {{-- Aucun HMTL associƩ --}} @component('components.cards.empty')

{!! trans('labels.LbTitleHtmlAssociatedSurveys') !!}
@can('surveys_edit') {{ trans('labels.LbTitleHtmlAssociatedWithSurveys') }} @endcan

@endcomponent @else @component('components.cards.card', ['title' => trans('labels.LbSubtitleSurveysHtml1')]) {{-- HTML associƩ --}} @foreach ($item->html as $html)
{{ $html->name }}
{!! App\DgcHelpers::getBadge($html->status, trans('bdd.htmls.status.enums')) !!}
@isset($html->published_at)
{{ trans('labels.LbTitlePublicationDate', ['date' => $html->published_at->format('d/m/Y')]) }}
@endisset
@can('surveys_export') @isset($html->published_at) @component('components.buttons.html_export_results',['htmlId'=> $html->id])@endcomponent @endisset @endcan @can('htmls_index') {!! config('dgc-icons.file-html') !!} @endcan @component('components.buttons.html_test',['htmlId'=> $html->id, 'survey' => $item])@endcomponent
@endforeach @endcomponent @endif