@php
$image_kind = [
    ['code' => 1, 'name' => '区画図'],
    ['code' => 2, 'name' => '間取り'],
    ['code' => 3, 'name' => '参考プラン'],
    ['code' => 0, 'name' => '未選択'],
];
$ad_conf = [
    ['code' => 1, 'name' => '未'],
    ['code' => 2, 'name' => '可'],
    ['code' => 3, 'name' => '不可'],
];
@endphp
<tr>
  <td colspan="5">
      <div class="d-flex">
          <div>
            <div class="p-add-photo">
            @if(!empty($content))
                <img name="upload_photo[]" class="p-add-photo__img" src="{{$content}}">
            @else
                <div name="add_image" class="p-add-photo__text" ondragover="dragover(event)" ondrop="drop(event)">
                    <p class="p-add-photo__memo">クリックまたは<br>ドラッグ&amp;ドロップ</p>
                </div>
                <img name="upload_photo[]" class="p-add-photo__noimg">
            @endif
            </div>
            <div class="mt10">
                  @include('admin.objects.components.switch', ['name' => 'image_kind', 'radio' => $image_kind, 'checked' => $test['image_kind']?? 0])
            </div>
          </div>
          <div>
              <div class="ml10 d-flex">
                  <div>
                      分類
                      @include('admin.objects.components.selectbox', ['name' => 'portal', 'options' => $ad_conf])
                  </div>
                  <div class="ml10">
                      種別
                      @include('admin.objects.components.selectbox', ['name' => 'portal', 'options' => $ad_conf])
                  </div>
              </div>
              <div class="mt10 ml10">
                  @include('admin.objects.components.textarea', ['name' => 'event_comment', 'class' => 'img_text', 'count' => 100, 'placeholder' => '自社HPHP１００文字まで/ホームズ１００文字まで/
スーモ１００文字まで/アットホーム５０文字まで'])
              </div>
          </div>
      </div>
    </td>
    <td class="p-regist__table-registtrader">
    @if(!empty($content))
        @include('admin.objects.components.btn', ['name' => 'del_photo', 'class' => 'btn_imagedel', 'title' => '削除', 'type' => 'button'])
    @else
        @include('admin.objects.components.btn', ['name' => 'add_photo', 'class' => 'btn_imagesave', 'title' => '新規保存', 'type' => 'button'])
    @endif
    </td>
</tr>