

<?php $__env->startSection("content"); ?>
<div class="sixteen wide column">
    <h1 class="ui header">
        參加者資料
    </h1>
    <div class="ui divider"></div>
    <?php if( !count($list) ): ?>  
    <h1 class="ui grey header">
        <i class="warning icon"></i>
        <div class="content">沒有資料</div>
    </h1>
    <?php else: ?>
    <table id="activity_table" class="ui unstackable table">
        <thead>
            <tr>
                <th>姓名</th>
                <th>性別</th>
                <th>縣市</th>
                <th>郵遞區號</th>
                <th>收件地址</th>
                <th>電話</th>
                <th>年齡</th>
                <th>電子信箱</th>
                <th>心得</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($list as $v): ?> 
            <tr>
                <td><p><?php echo e($v->name); ?></p></td>
                <td>
                    <?php if($v->sex == 0): ?>
                        <p>男</p>
                    <?php else: ?>
                        <p>女</p>
                    <?php endif; ?>
                </td>
                <td><p><?php echo e($v->city); ?></p></td>
                <td><p><?php echo e($v->city_num); ?></p></td>
                <td><?php echo e($v->address); ?></td>
                <td><?php echo e($v->phone); ?></td>
                <td><?php echo e($v->age); ?></td>
                <td><p><?php echo e($v->email); ?></p></td>
                <td><p><?php echo e($v->experience); ?></p></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    <?php endif; ?>
    
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection("script"); ?>


<script type="text/javascript">
    
    <?php echo $__env->make('partials.message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
$(document).ready( function () {
    $('#activity_table').DataTable({
        "pageLength": 10,
        "lengthChange": false,
        "language": {
            "search": "search the key:",
            "searchPlaceholder": "Search",
            "zeroRecords": "找不到相對應的值，請重新輸入",
            "info": "第 _START_ 到 _END_ 筆，共 _TOTAL_ 筆",
            "infoFiltered": ""

    },
        "order": [[ 1, 'desc' ]]

    });
    var table = $('#activity_table').DataTable();

} );

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