<?php $__env->startSection('content'); ?>
    <style>
        label.error {
            color: red;
        }
    </style>
    <div class="common-content">
        <div class="page-content">
            <div class="page-heading">
                <div class="headings">
                    <h6>Message listing</h6>
                </div>
            </div>
            <div class="dashboard-cnts">
                <div class="msg-listing">
                    <?php $__currentLoopData = $messagelisting; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mlist): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php echo $__env->make('include.messaging-list-extended', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php echo $messagelisting->links(); ?>

                </div>
            </div>
        </div>
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('scripts'); ?>
        <script>
            window.baseurl = 'https://www.meddbot.com/';

            function readmessage(id, url) {
                var data = {
                    _token: $('.token_user').val(),
                    id: id
                }
                $.ajax({
                    url: baseurl + 'msg_read',
                    type: "POST",
                    data: data,
                    success: function(res) {
                        window.location = baseurl + url;
                    }
                });
            }
            $(document).ready(function() {
                $('#table_id').DataTable();
            });
            <?php if(Session::has('message')): ?>
                swal({
                    title: "",
                    text: "<?php echo e(Session::get('message')); ?>",
                    type: "success",
                    showCancelButton: false,
                    dangerMode: false,
                    confirmButtonText: 'OK',
                });
            <?php endif; ?>
            <?php if(Session::has('errormessage')): ?>
                swal({
                    title: "",
                    text: "<?php echo e(Session::get('errormessage')); ?>",
                    type: "error",
                    showCancelButton: false,
                    dangerMode: true,
                    confirmButtonText: 'OK',
                });
            <?php endif; ?>
        </script>
    <?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main_assetmanage', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/buyers/messagelisting.blade.php ENDPATH**/ ?>