<?php $__env->startSection('title', 'Complaint Management'); ?>

<?php $__env->startSection('content'); ?>

    <section>
        <div class="row">
           
            <div class="col-12">

                <div class="card">

                    <div class="card-content">
                        <div class="card-header">
                             <h1>Complaint Details</h1>
                             
                        </div>
                        <div class="card-body card-dashboard">
                            <?php echo $__env->make('inc.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <div class="table-responsive">
                                <br>
                                <table class="table" style="font-size: 14px">
                                    <thead>
                                    <tr>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td><b>ID</b></td>
                                            <td><?php echo e($complaint->id); ?></td>
                                    </tr>
                                    <tr>
                                        <td><b>Customer Name</b></td>
                                        <td><?php echo e($complaint->customer_name); ?></td>
                                    </tr>
                                    <tr>
                                        <td><b>Customer Address</b></td>
                                        <td><?php echo e($complaint->customer_address); ?></td>
                                    </tr>
                                    <tr>
                                        <td><b>Customer Contact</b></td>
                                        <td><?php echo e($complaint->customer_contact); ?></td>
                                    </tr>
                                    <tr>
                                        <td><b>Complaint Description</b></td>
                                        <td><?php echo e($complaint->description); ?></td>
                                    </tr>
                                    <tr>
                                        <td><b>Complaint Type</b></td>
                                        <td>
                                            <?php switch($complaint->complaint_type):
                                                case (1): ?>
                                                    Payments
                                                    <?php break; ?>
                                                <?php case (2): ?>
                                                    Delay in Delivery
                                                    <?php break; ?>
                                                <?php case (3): ?>
                                                    Delay in Pickup
                                                    <?php break; ?>
                                                <?php case (4): ?>
                                                    Incorrect COD
                                                    <?php break; ?>
                                                <?php case (5): ?>
                                                    Return
                                                    <?php break; ?>
                                                <?php case (6): ?>
                                                    Courier Misbehavior
                                                    <?php break; ?>
                                                <?php case (7): ?>
                                                    Wrong COD
                                                    <?php break; ?>
                                                <?php case (8): ?>
                                                    Booking Portal Issue
                                                    <?php break; ?>
                                                <?php case (9): ?>
                                                    Other
                                                    <?php break; ?>
                                                <?php case (10): ?>
                                                    Fake Reason
                                                    <?php break; ?>
                                                <?php case (15): ?>
                                                    Flyers
                                                    <?php break; ?>
                                                <?php case (16): ?>
                                                    Product/Quality Issue
                                                    <?php break; ?>
                                                <?php case (18): ?>
                                                    Short Contents
                                                    <?php break; ?>
                                                <?php case (19): ?>
                                                    Wrong Delivery/Misroute
                                                    <?php break; ?>
                                                <?php case (27): ?>
                                                    Open Parcel
                                                    <?php break; ?>
                                                <?php case (28): ?>
                                                    Open Parcel Complaint
                                                    <?php break; ?>
                                                <?php case (30): ?>
                                                    Issue with Sales Person
                                                    <?php break; ?>
                                                <?php case (31): ?>
                                                    Sales Lead
                                                    <?php break; ?>
                                            <?php endswitch; ?>
                                      </td>
                                    </tr>
                                    <tr>
                                        <td><b>Status</b></td>
                                        <?php if($complaint->status==1): ?>
                                            <td>Launched</td>
                                        <?php elseif($complaint->status==2): ?>
                                            <td>In-Process</td>
                                        <?php elseif($complaint->status==3): ?>
                                            <td>Resolved</td>
                                        <?php elseif($complaint->status==4): ?>
                                            <td>Closed</td>
                                        <?php elseif($complaint->status==5): ?>
                                            <td>Re-Open</td>
                                        <?php elseif($complaint->status==6): ?>
                                            <td>Valid</td>
                                        <?php else: ?>
                                            <td>Invalid</td>
                                        <?php endif; ?>
                                    </tr>
                                    <tr>
                                        <td><b>Reported By</b></td>
                                        <td><?php echo e($complaint->reported_by); ?></td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/forms/icheck/custom.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/forms/icheck/icheck.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/forms/selects/select2.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script src="<?php echo e(asset('app-assets/vendors/js/forms/icheck/icheck.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('app-assets/js/scripts/forms/checkbox-radio.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('app-assets/vendors/js/forms/select/select2.full.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('app-assets/vendors/js/forms/validation/jquery.validate.min.js')); ?>" type="text/javascript"></script>

   <script src="<?php echo e(asset('app-assets/vendors/js/extensions/sweetalert.min.js')); ?>" type="text/javascript"></script>

    <script src="<?php echo e(asset('app-assets/vendors/js/forms/validation/additional-methods.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('app-assets/vendors/js/forms/extended/inputmask/jquery.inputmask.bundle.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('js/datatable_buttons.js')); ?>" type="text/javascript"></script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\catalyst\resources\views/complaint_management/show.blade.php ENDPATH**/ ?>