
<?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">Detail 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">Detail Komplain</strong>
                            </div>
                            <div class="card-body card-block">
                                <form action="<?php echo e(route('komplain.update', ['komplain' => $komplain[0]['id']])); ?>" method="post" enctype="multipart/form-data" class="form-horizontal">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('PUT'); ?>

                                    <table>
                                        
                                        <tr>
                                            <td colspan="3" style="font-size: 25px"><?php echo e($komplain[0]['nama_customer']); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Alamat</td>
                                            <td>:</td>
                                            <td>
                                                <?php echo e($komplain[0]['alamat']); ?>

                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 100px;">Nama</td>
                                            <td style="width:10px;">:</td>
                                            <td>
                                                <?php echo e($komplain[0]['nama_lengkap']); ?>

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>No. Telp</td>
                                            <td>:</td>
                                            <td>
                                                <?php echo e($komplain[0]['no_telp']); ?>

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Email</td>
                                            <td>:</td>
                                            <td>
                                                <?php echo e($komplain[0]['email']); ?>

                                            </td>
                                        </tr>
                                    </table>
                                    <hr>
                                    <table>
                                        <tr>
                                            <td valign="top">Komplain</td>
                                            <td valign="top">:</td>
                                            <td>
                                                <?php echo e($komplain[0]['pesan']); ?>

                                            </td>
                                        </tr>
                                    </table>
                                    <?php if($komplain[0]['gambar']): ?>
                                        <a href="<?php echo e(config('app.pwa_path', '') . '/img/komplain/'.$komplain[0]['gambar']); ?>" target="_blank">
                                            <img src="<?php echo e(config('app.pwa_path', '') . '/img/komplain/'.$komplain[0]['gambar']); ?>" style="width: 10%" alt="" srcset="">
                                        </a>
                                    <?php endif; ?>
                                    
                                    <?php if($komplain[0]['gambar_galeri']): ?>
                                        <a href="<?php echo e(config('app.pwa_path', '') . '/img/komplain/'.$komplain[0]['gambar_galeri']); ?>" target="_blank">
                                            <img src="<?php echo e(config('app.pwa_path', '') . '/img/komplain/'.$komplain[0]['gambar_galeri']); ?>" style="width: 10%" alt="" srcset="">
                                        </a>
                                    <?php endif; ?>
                                    <hr style="border: 1px solid black">
                                    Jadwalkan Teknisi
                                    <hr>
                                    <div class="row form-group">
                                        <div class="col col-md-2"><label for="text-input" class=" form-control-label">Tanggal</label></div>
                                        <div class="col-12 col-md-3">
                                            <input type="date" id="text-input" name="tgl_kunjungan" value="<?php echo e($komplain[0]['tgl_kunjungan']); ?>" class="form-control">
                                        </div>
                                        <div class="col-12 col-md-2">
                                            <select name="jam" class="form-control" required>
                                                <option value="">--Pilih Waktu--</option>
                                                <?php for($i = 5; $i < 23; $i++): ?>
                                                    <?php
                                                     $jam = str_pad($i, 2, '0', STR_PAD_LEFT).':00';   
                                                    ?>
                                                    <option <?php echo e($komplain[0]['jam'] == $jam ?'selected':''); ?> value="<?php echo e($jam); ?>"><?php echo e($jam); ?></option>
                                                <?php endfor; ?>
                                                
                                            </select>
                                        </div>
                                    </div>

                                     <div class="row form-group">
                                        <div class="col col-md-2"><label for="multiple-select" class=" form-control-label">Teknisi</label></div>
                                        <div class="col col-md-9">
                                            <select data-placeholder="Pilih Teknisi..." multiple class="form-control standardSelect" name="teknisi[]" required>
                                                <option value="" label="default"></option>
                                                <?php $__currentLoopData = $teknisi; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $selected = null;
                                                    ?>
                                                    <?php $__currentLoopData = $jadwal_teknisi; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        
                                                        <?php if($item->id == $jad['id_user']): ?>
                                                            <?php
                                                                $selected = 'selected';
                                                            ?>
                                                        <?php endif; ?>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    <option <?php echo e($selected); ?> value="<?php echo e($item->id); ?>"><?php echo e($item->nama_lengkap); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                
                                                
                                            </select>
                                        </div>
                                        
                                    </div>
                                    <br/>

                                    <button type="submit" class="btn btn-primary">
                                        Simpan
                                    </button>
                                    <a href="<?php echo e(route('komplain.index')); ?>" class="btn btn-default">
                                        Batal
                                    </button>
                                </form>
                            </div>
                           
                        </div>
                    </div>


                </div>
            </div><!-- .animated -->
        </div><!-- .content -->
        <!-- /.content -->

<?php $__env->startSection('js'); ?>
<script>
    jQuery(document).ready(function() {
        jQuery(".standardSelect").chosen({
            disable_search_threshold: 10,
            no_results_text: "Oops, nothing found!",
            width: "100%"
        });
    });
</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/edit.blade.php ENDPATH**/ ?>