git -C '/home/opc/rocketa.git' show 13d79e5 -- resources/views/media/ad/detail.blade.phpcommit 13d79e5dee41987780133ced01b3e3cc2349b1c9
Author: Satoshi Ujihara <satoshi_ujihara@fivegate.jp>
Date: Wed Nov 5 13:17:46 2025 +0900
テストセンター機能実装
diff --git a/resources/views/media/ad/detail.blade.php b/resources/views/media/ad/detail.blade.php
index 958765a..9d97697 100644
--- a/resources/views/media/ad/detail.blade.php
+++ b/resources/views/media/ad/detail.blade.php
@@ -302,13 +302,16 @@ if (count($get_ad_material_datas) > 0) {
<div class="row m-0 inner_box justify-content-center">
<div class="col-md-8 p-0">
- <ul class="nav nav-pills w-100 manuscript_btn_box" role="tablist">
+ <ul class="nav nav-pills w-100 manuscript_btn_box gap-1" role="tablist">
<li class="nav-item flex-fill">
<a href="#list_bnr" class="btn btn-primary w-100 active" data-bs-toggle="pill" role="tab" aria-controls="bnr" aria-selected="true">{{__('ad-detail.banner_creative')}}</a>
</li>
<li class="nav-item flex-fill">
- <a href="#list_txt" class="btn btn-primary w-100" data-bs-toggle="pill" role="tab" aria-controls="txt" aria-selected="false">{{__('ad-detail.text_creative')}}</a>
+ <a href="#list_txt" class="btn btn-primary w-100" style="border-radius:0" data-bs-toggle="pill" role="tab" aria-controls="txt" aria-selected="false">{{__('ad-detail.text_creative')}}</a>
</li>
+ <li class="nav-item flex-fill">
+ <a href="#list_test" class="btn btn-primary w-100" data-bs-toggle="pill" role="tab" aria-controls="test" aria-selected="false">{{__('ad-detail.test_creative')}}</a>
+ </li>
</ul>
</div>
</div><!-- /.inner_box -->
@@ -431,7 +434,125 @@ if (count($get_ad_material_datas) > 0) {
@endif
</div><!-- /#list_txt -->
+ <?php // Test Centerの中身 ?>
+ <div id="list_test" class="tab-pane" role="tabpanel" aria-labelledby="txt-test">
+ @if (isset($ad_join_media_data->status) && $ad_join_media_data->status == 1)
+ <ul class="list-unstyled m-0 p-0">
+
+ <li class="form_box border mb-3 p-3">
+ <div class="mb-3 pb-2 border-bottom">
+ <h5 class="font-weight-bold m-0">STEP 1</h5>
+ </div>
+
+ <div class="row m-0 justify-content-center">
+ <p>こちらのURLを対象デバイスでクリックしてください。(パートナー様の独自パラメータがございましたら、独自パラメータも付与してください。)<br /><font color='red'">こちらのURLはテスト用です。本番環境では使用しないでください。</font></p>
+ </div>
+
+ <div class="mt-3 pt-3 border-top">
+ <h6 class="h5 font-weight-bold">TEST CLICK URL</h6>
+
+ {!! Form::text('', str_replace('/click?','/test?', $ad_material_manuscripts[$ad_material_data->id][2]), ['id'=>'copyTarget'.$copy_target, 'class'=>'form-control']) !!}
+
+ <div class="row m-0 mt-2 justify-content-start">
+ <div class="col-lg-3 col-sm-4 p-0">
+ {{ Form::button(__('ad-detail.copy_individual_url'), ['class'=>'btn btn-secondary w-100', 'onclick'=>'copyToClipboard('.$copy_target.')']) }}
+ <?php $copy_target++; ?>
+ </div>
+ </div>
+ </div>
+ </li>
+ <li class="form_box border mb-3 p-3">
+ <div class="mb-3 pb-2 border-bottom">
+ <h5 class="font-weight-bold m-0">STEP 2</h5>
+ </div>
+
+ <div class="row m-0 justify-content-center">
+ <p>この画面をリロードしてクリックログがついていることを確認して承認ボタンを押してください。</p>
+ </div>
+
+ <div class="mt-3 pt-3 border-top">
+ <h6 class="h5 font-weight-bold">クリックログ</h6>
+
+
+
+ <div class="row m-0 mt-2 justify-content-start">
+
+ @if (count($click_records_test) > 0)
+ <div class="inner_table table-responsive">
+ <table class="table table-bordered table-striped text-nowrap mb-0">
+ <thead class="thead-light">
+ <tr>
+ <th scope="col"><span class="d-block text-center">sid</span></th>
+ <th scope="col"><span class="d-block text-center">独自パラメータ</span></th>
+ <th scope="col"><span class="d-block text-center">クリック日時</span></th>
+ <th scope="col"><span class="d-block text-center">承認</span></th>
+ </tr>
+ </thead>
+
+ <tbody>
+ @foreach ($click_records_test as $click_records_test_data)
+ <tr>
+ <td class="align-middle text-break">
+ {{ $click_records_test_data->sid }}
+ </td>
+
+ <td class="align-middle text-break">
+ {{ $click_records_test_data->other_parameters }}
+ </td>
+ <td class="align-middle text-break">
+ {{ $click_records_test_data->created_at }}
+ </td>
+ <td class="align-middle text-center">
+ <div class="row m-0 align-items-center inner_area_btn inner_area_btn_col_2">
+ <div class="col-lg-6 py-0 px-1">
+ {{ Form::open(['method' => 'post','url' =>'ad/test/'.$click_records_test_data->id]) }}
+ <input type="submit" value="承認" class="btn btn-secondary w-100 h-100 px-0" />
+ {{ Form::close()}}
+ </div>
+
+ </div>
+ </td>
+ </tr>
+ @endforeach
+ </tbody>
+ </table>
+ </div>
+ @endif
+
+ </div>
+ </div>
+ </li>
+
+ <li class="form_box border mb-3 p-3">
+ <div class="mb-3 pb-2 border-bottom">
+ <h5 class="font-weight-bold m-0">STEP 3</h5>
+ </div>
+
+ <div class="row m-0 justify-content-center">
+ <p>承認後、下記のURLへ通知を行います。ご確認ください。</p>
+ </div>
+
+ <div class="mt-3 pt-3 border-top">
+ <h6 class="h5 font-weight-bold">通知URL</h6>
+
+ {!! Form::text('', $media_data->api_url_test, ['id'=>'copyTarget'.$copy_target, 'class'=>'form-control']) !!}
+
+ </div>
+ </li>
+
+
+
+
+ </ul>
+ @else
+ <div class="inner_box text-center">
+ {{__('ad-detail.no_data_found')}}
+ </div>
+ @endif
+ </div><!-- /#list_txt -->
+
</div><!-- /.tab-content -->
+
@endsection
@section('respectively_js')