<?php
$tt_page_info = array(
  'Page_Info' =>   array(
    'Title' => $tauthor_page_title,
    'Description' => '',
    'Keyword' => '',
  ),
  'Social_og' => array(
    'Image' => '',
    'Type' => 'website',
    'URL' => 'account/'.$section_2.'/',
  ),
);

require_once('./header.php'); // Include Footer
?>
<script src="<?php echo $site_domain ?>mfit-admin/assets/vendor/datatable-tt/datatables.min.js"></script>
<link href="<?php echo $site_domain ?>mfit-admin/assets/vendor/datatable-tt/datatables.min.css" rel="stylesheet">
<script src="<?php echo $site_domain ?>mfit-admin/assets/vendor/datatable-tt/dataTables.responsive.min.js"></script>
<section id="account_mahamudfutureit" class="sectionbg pt-4 pb-5">
      <div class="container">
          <div class="row mt-4 justify-content-center">
            <div class="col-md-8">
              <div class="acc-info-head round-15 mahamudfutureit-shadow border-0 card p-3 p-md-4">
                  <h1 class="m-0 fs-4"><img height="28px" src="<?php echo $site_domain ?>assets/image/icons/<?php echo $tauthor_page_icon ?>"> <?php echo $tt_page_info['Page_Info']['Title'] ?>
                    <small class="text-muted">(<?php echo bnNumber(count($tt_author_article_post)) ?>)</small>
                  </h1>
                  <hr>
                  <nav style="--s-breadcrumb-divider: '/';" aria-label="breadcrumb">
                      <ol class="breadcrumb m-0">
                        <li class="breadcrumb-item"><a href="<?php echo $site_domain ?>account/">অ্যাকাউন্ট</a></li>
                        <li class="breadcrumb-item"><a href="#"> <?php echo $tt_page_info['Page_Info']['Title'] ?></a></li>
                      </ol>
                  </nav>
              </div>
              <?php
              if (!empty($tt_author_article_post)) {
                ?>
                <div class="personal_info  round-15 mahamudfutureit-shadow border-0 card mt-3 py-2 ">
                  <table  class="tt_datatable" style="width:100%">
                    <thead class="d-none"> <tr> <td> </td> </tr> </thead>
                    <tbody>
                    <?php
                      foreach ($tt_author_article_post as $the_a_post) {
                        ?>
                        <tr class="shadow-none">
                          <td  class="border-top">
                            <div>
                              <div class="row g-2 align-items-center">
                                <div class="col-3 ">
                                  <a href="<?php echo articleLink($the_a_post['PostId']) ?>">
                                    <img class="w-100 rounded-2"  src="<?php echo $advancenews['ArticlePreloader'] ?>"  data-src="<?php echo articleImg($the_a_post['PostId']) ?>" alt="<?php echo $the_a_post['PostTitle'] ?>">
                                  </a>
                                </div>
                                <div class="col-9">
                                  <a href="<?php echo articleLink($the_a_post['PostId']) ?>">
                                    <h1 class="news-title-2 m-0"><?php echo $the_a_post['PostTitle'] ?></h1>
                                  </a>
                                  <div class="mt-2">
                                    <a class="text-muted" href="<?php echo articleCategory($the_a_post['PostId'],'url') ?>"><i class="bi bi-bookmark-star-fill"></i> <?php echo articleCategory($the_a_post['PostId'],'name') ?></a>
                                    <a class="text-muted ps-2" href="<?php echo articleCategory($the_a_post['PostId'],'url') ?>"><i class="bi bi-clock"></i> <?php echo articleTime($the_a_post['PostDatePublic']); ?></a>
                                    <a class="text-muted ps-2" href="<?php echo $site_domain ?>account/article/edit/<?php echo $the_a_post['PostId'] ?>/"><i class="bi bi-vector-pen"></i> সম্পাদনা</a>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </td>
                        </tr>
                        <?php
                      }
                    ?>
                    </tbody>
                  </table>

                </div>
                <?php
              }else {
                ?>
                <div class="personal_info  text-center round-15 mahamudfutureit-shadow border-0 card mt-3 p-3 p-md-4">
                  কোন লেখা পাওয়া যায়নি !
                </div>
                <?php
              }
              ?>
            </div>
          </div>
      </div>
  </section>
  <script type="text/javascript">
    $(function () {
      new DataTable('.tt_datatable', {
        "order": [],
        "responsive": true,
        "autoWidth": false,
        "language": {
          "lengthMenu": "প্রতি পৃষ্ঠায় _MENU_ টি আর্টিকেল",
          "zeroRecords": "কোনো লেখা পাওয়া যায়নি",
          "info": "মোট _TOTAL_ টি লেখার মধ্যে _START_ থেকে _END_ দেখানো হচ্ছে",
          "infoEmpty": "কোনো তথ্য পাওয়া যায়নি",
          "infoFiltered": "(মোট _MAX_ লেখার মধ্যে থেকে ছাঁকানো হয়েছে)",
          "search": "খুঁজুন:",
          "paginate": {
            "first": "প্রথম",
            "last": "শেষ",
            "next": "পরবর্তী",
            "previous": "পূর্ববর্তী"
          }
        }
      });
    });
  </script>
<?php
require_once('./footer.php'); // Include Footer
?>
