
<?php $__env->startSection('title','Komplain'); ?>
<?php $__env->startSection('content'); ?>
        
        <div class="breadcrumbs">
            <div class="breadcrumbs-inner">
                <div class="row m-0">
                    <div class="col-sm-4">
                        <div class="page-header float-left">
                            <div class="page-title">
                                <h1>Komplain</h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-8">
                        <div class="page-header float-right">
                            <div class="page-title">
                                <ol class="breadcrumb text-right">
                                    <li><a href="#">Master</a></li>
                                    <li><a href="#">Komplain</a></li>
                                    <li class="active">Data Komplain</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- Content -->
        <div class="content">
            <div class="animated fadeIn">
                <div class="row">

                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <strong class="card-title">Data Komplain</strong>
                            </div>
                            <div class="card-body">
                                <?php echo $__env->make('include.admin.alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                
                                
                                <table id="dataKomplain" class="table table-striped table-bordered">
                                    <thead>
                                        <tr>
                                            <th>No.</th>
                                            <th>Nama PIC</th>
                                            <th>Telp</th>
                                            
                                            <th>Produk</th>
                                            <th>Unit</th>
                                            <th>Nama Customer</th>
                                            <th>Lokasi</th>
                                            <th>Tgl. Kunjungan</th>
                                            <th>Teknisi</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                   
                                </table>
                            </div>
                        </div>
                    </div>


                </div>
            </div><!-- .animated -->
        </div><!-- .content -->
        <!-- /.content -->
<?php $__env->startSection('js'); ?>
<script>
  $(document).ready(function() {
    var t = $('#dataKomplain').DataTable({
        processing: true,
        serverSide: true,
        ajax: "<?php echo e(route('komplain-data.getData')); ?>",
        columns: [
            {
                data: null,
                name: 'rownum',
                orderable: false,
                searchable: false,
                render: function(data, type, row, meta) {
                    return meta.row + meta.settings._iDisplayStart + 1;
                }
            },
            { data: 'nama_lengkap', name: 'nama_lengkap' },
            { data: 'no_telp', name: 'no_telp' },
            // { data: 'email', name: 'email' },
            { data: 'judul', name: 'judul' },
            { data: 'serial_number', name: 'serial_number' },
            { data: 'nama_customer', name: 'nama_customer' },
            { data: 'alamat', name: 'alamat' },
            { data: 'tgl_kunjungan', name: 'tgl_kunjungan' },
            {
                data: 'teknisi',
                name: 'teknisi',
                render: function(data, type, row) {
                    if (data && data.length > 0) {
                        return data.map(t => t.nama_teknisi).join(', ');
                    }
                    return '-';
                }
            },
            { data: 'action', name: 'action', orderable: false, searchable: false }
        ]
    });
});

</script>
<?php $__env->stopSection(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home3/baktijay/public_html/ptgib.co.id/admin/resources/views/data_transaksi/komplain/index.blade.php ENDPATH**/ ?>