<div id="modal-content{{$data_num??''}}" class="modal-contents p-history-modal">
    <div id="modal_open">
        <main id="modal_main">
        @if(isset($history))
        <table>
            <tr><th colspan="3">
                <span>履歴</span>
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="modal-close">×</button></th></tr>
            @foreach($history as $his)
                @if(!$loop->last)
                <tr>
                    <td>変更履歴</td>
                    <td>{{$his->price}}万円</td>
                    <td>{{$his->regist_date}}</td>
                </tr>
                @else
                <tr>
                    <td class="title">登録</td>
                    <td>{{$his->price}}万円</td>
                    <td class="date">{{$his->regist_date}}</td>
                </tr>
                @endif
            @endforeach
        </table>
        @endif
        </main>
    </div>
</div>