<?php $__env->startSection('content'); ?>

<div class="new-thanks">
  <div class="new-thanks__header">
    <h2 class="new-thanks__header-sub-title en">Thank you !</h2>
    <h1 class="new-thanks__header-title">資料の送信が完了しました<span class="d-md-none">。</span></h1>
    <p class="new-thanks__header-text new-thanks__header-text_bold">ご入力いただいたメールアドレス宛にPDFファイルのダウンロードURLをメールにてお送りしました。</p>
    <p class="new-thanks__header-text">メールが届かない場合は大変お手数ですが、メールアドレスをご確認のうえ、<br>再度お問い合わせの手続きをお願い致します。</p>
  </div>

  <div class="new-thanks__title-unit">
    <h3 class="new-thanks__title-unit-title">ダウンロード可能な資料</h3>
  </div>


  <?php
  $args = array(
    'post_type' => 'request',
    'taxonomy' => 'request_cat',
    'term' => $term->slug,
    'posts_per_page' => -1,
  );
  $wp_query = new WP_Query($args);
  ?>
  <ul class="request-page__post-list mb-md-5 pb-3 pb-md-5">
    <?php
    if ( $wp_query->have_posts() ): 
      while ( $wp_query->have_posts() ): 
        $wp_query->the_post();
    ?>
    <li class="request-page__post-list-item">
      <a href="<?php the_permalink(); ?>">
        <figure class="request-page__img-wrap">
          <?php if( has_post_thumbnail() ): ?>
            <?php the_post_thumbnail('large', array('class'=>'request-page__img img-transform')); ?>
          <?php endif; ?>
        </figure>
      </a>
      <p class="request-page__cat"><?php echo get_the_terms($post_id, 'request_cat')[0] -> name; ?></p>
      <h2 class="request-page__post-list-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
      <p class="request-page__excerpt"><?php echo mb_substr(get_the_excerpt(), 0, 100); ?></p>
      <a class="request-page__dl-btn" href="<?php the_permalink(); ?>">ダウンロード</a>
    </li>
    <?php endwhile;
    endif;
    wp_reset_postdata();
    ?>
  </ul>





  <a class="btn-gra mt-5 mb-5 mb-md-0 mx-md-auto" href="<?php echo e(home_url('/request/')); ?>">資料ダウンロードトップに戻る</a>
</div>




<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>