
<?php $__env->startSection('content'); ?>
<div class="main-header">
    <div class="admin-header">
        <div class="uk-grid">
            <div class="uk-width-1-2@m uk-text-center uk-text-left@l">
                <h1 class="main-heading"><?php echo e($title); ?></h1>
            </div>
        </div>
    </div>
</div>
<div class="uk-overflow-auto">
    <?php echo $__env->make('partials.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <table class="uk-table uk-table-divider" id="seller_request">
        <thead>
            <tr>  
                <th>View Detail</th>
                <th>ID</th>
                <th>Name</th>
                <th>Province</th>
                <th>Region</th>
                <th>City</th>
                <th>Bedrooms</th>
                <th>Bathrooms</th>
                <th>Created Date</th>
            </tr>
        </thead>
    </table>
</div>    
<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer-script'); ?>
<script>
    $('#seller_request').DataTable({
        processing: true,
        pageLength: 100,
        responsive: true,
        serverSide: true,
        ordering: true,
        bPaginate: true,
        bLengthChange: false,
        bFilter: true,
        bInfo: false,
        bAutoWidth: false,
        language: {
            search: '',
            searchPlaceholder: 'Search'
        },
        // aaSorting: [[1, 'desc']],
        ajax: window.location.href, 
        columns: [
            { data: 'view_detail',orderable: false, name: 'view_detail',searchable: false, width: "8%" },
            { "data": "id", "name": "id",orderable: true ,searchable: true, width: "8%",
                fnCreatedCell: function (nTd, sData, oData, iRow, iCol) {
                    $(nTd).html("<span>"+'#S'+oData.id+"</span>");
                }
            },
            { data: 'user_name',orderable: true, name: 'user_name',searchable: true, width: "10%" },
            { data: 'province',orderable: true, name: 'province',searchable: true, width: "12%" },
            { data: 'region',orderable: true, name: 'region',searchable: true, width: "10%" },
            { data: 'city',orderable: true, name: 'city',searchable: true, width: "10%" },
            { data: 'bedrooms',orderable: true, name: 'bedrooms',searchable: true, width: "10%" },
            { data: 'bathrooms',orderable: true, name: 'bathrooms',searchable: true, width: "10%" },
            { data: 'created_at',orderable: true, name: 'created_at',"render": function (v,j,y) {
                return moment(v).format('MMM D, YYYY');
            },searchable: true,width: "12%" },
        ],
        order: [[ 8, "desc" ]]
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kelowna/public_html/listingllama.kelowna.website/resources/views/admin/seller_request/index.blade.php ENDPATH**/ ?>