        <div class="d-flex position-relative p-3 border-bottom mb-3 align-items-center">
                                    <div class="avatar avatar-2xl status-online me-3">
                                        <img class="rounded-circle" src="<?php echo e($publisher->photourl); ?>" alt="" />

                                    </div>
                                    <div class="flex-1">
                                        <h6 class="mb-0"><a class="text-decoration-none stretched-link text-700"
                                                href="<?php echo e(route('manager.get-detail', $publisher->id)); ?>"><?php echo e($publisher->name); ?></a>
                                        </h6>
                                        <p class="mb-0">Your Publisher <?php echo e($publisher->name); ?>. Say hi to start the
                                            conversation
                                        </p>
                                    </div>
                                </div>
                                <?php $data=date('Y');?>
                                <?php $__currentLoopData = $message; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $messag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($data != date_format(date_create($messag->created_at), 'd')): ?>
                                        <?php $data=date_format(date_create($messag->created_at), 'd');?>
                                        <div class="text-center fs--2 text-500">
                                            <span><?php echo e(date_format(date_create($messag->created_at), 'M d Y h:i a')); ?></span>
                                        </div>
                                    <?php endif; ?>
                                    <?php if($messag->receiver == 'affliate'): ?>
                                        <div class="d-flex p-3">
                                            <div class="avatar avatar-l me-2">
                                                <img class="rounded-circle" src="<?php echo e($publisher->photourl); ?>"
                                                    alt="" />

                                            </div>
                                            <div class="flex-1">
                                                <div class="w-xxl-75">
                                                    <div class="hover-actions-trigger d-flex align-items-center">
                                                        <div class="chat-message bg-200 p-2 rounded-2">
                                                            <p> <?php echo $messag->message; ?></p>
                                                            <?php if(!empty($messag->photourl)): ?>
                                                                <a href="<?php echo e($messag->photourl); ?>"><img
                                                                        src="<?php echo e($messag->photourl); ?>" width="100"
                                                                        height="100"></a>
                                                            <?php endif; ?>
                                                        </div>
                                                        <ul
                                                            class="hover-actions position-relative list-inline mb-0 text-400 ms-2">


                                                        </ul>
                                                    </div>
                                                    <div class="text-400 fs--2">
                                                        <span><?php echo e(date_format(date_create($messag->created_at), ' H:i')); ?></span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    <?php else: ?>
                                        <div class="d-flex p-3">
                                            <div class="flex-1 d-flex justify-content-end">
                                                <div class="w-100 w-xxl-75">
                                                    <div class="hover-actions-trigger d-flex flex-end-center">
                                                        <ul
                                                            class="hover-actions position-relative list-inline mb-0 text-400 me-2">


                                                        </ul>
                                                        <div
                                                            class="bg-primary text-white p-2 rounded-2 chat-message light">
                                                            <p class="mb-0"><?php echo $messag->message; ?></p>
                                                            <?php if(!empty($messag->photourl)): ?>
                                                                <a href="<?php echo e($messag->photourl); ?>"><img
                                                                        src="<?php echo e($messag->photourl); ?>" width="100"
                                                                        height="100"></a>
                                                            <?php endif; ?>

                                                        </div>
                                                    </div>
                                                    <div class="text-400 fs--2 text-end">
                                                        <?php echo e(date_format(date_create($messag->created_at), ' h:i a')); ?><span
                                                            class="fas fa-check ms-2 text-success"></span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php /**PATH /home/ayixmwuy/public_html/aff/backend/resources/views/affiliate/chat_message.blade.php ENDPATH**/ ?>