<label id="{{$id}}" class="p-imgupload__area_consent text-center" for="fileSingleInputConsent">
    @if(isset($article->consent_form))
        @if(str_contains($article->consent_form, '.pdf'))
            <embed class="preview-pdf-consent" id="consent-img" src="{{str_replace('public','/storage', $article->consent_form)}}" width="200" />
        @else
            <img id="consent-img" src="{{str_replace('public','/storage', $article->consent_form)}}" width="200" />
        @endif
    @endif

    <embed type='application/pdf' id="preview-pdf-consent" class="preview-pdf-consent" style="display:none;" />

    <canvas name="canvas_floor_consent" width="0" height="0"></canvas>
    <p class="p-imgupload__text">クリックまたは<br>ドラッグ&amp;ドロップ</p>
    <input id="fileSingleInputConsent" type="file" name="file_single_input_consent" style="display:none;">
    <input type="hidden" name="file_path" value="{{$file_path??''}}">

    <input type="hidden" name="floor_file_delete_flg_consent" id="floor_file_delete_flg_consent" value="">
</label>
