<?php

?>

<div class="container">
    <div class="card">
        <div class="card-header">
            <?= $user->name ?> - All Chat Lists
        </div>
  
       <div class="card-body">
        <?php
            if ($chats)
            {
                $decodeChat = json_decode($chats);
                foreach($decodeChat as $key=>$chat)
                {
                    ?>
                        <a 
                            href="<?= base_url()?>/FreelanceController/JobChat/<?= $chat->job_bid_id?>" class="bg-warning"
                             style="padding: 10px 10px;display:block;border-radius:5px;color: #000;font-weight: bold;letter-spacing: 1px; margin:3px;" 
                            target="_blank"     
                        >
                            <?= $chat->title ?>
                        </a>

                    <?php
                }

            }
        ?>
        </div>
    </div>
</div>