<!-- Home Design Inner Pages -->
<div class="ulockd-inner-home">
    <div class="container">
        <div class="row">
            <div class="inner-conraimer-details">
                <div class="col-md-12">
                    <h1 class="text-uppercase"><?php echo $this->lang->line('our'); ?> <?php echo $this->lang->line('department'); ?></h1>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Home Design Inner Pages -->
<div class="ulockd-inner-page">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="ulockd-icd-layer">
                    <ul class="list-inline ulockd-icd-sub-menu">
                        <li><a href="<?php echo site_url(); ?>"> <?php echo $this->lang->line('home'); ?> </a></li>
                        <li>></li>
                        <li><?php echo $this->lang->line('department'); ?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Inner Pages Main Section -->

<!-- Our Department -->
<section class="ulockd-fservice">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3 text-center">
                <div class="ulockd-main-title">
                    <h2 class="mt-separator"><?php echo $this->lang->line('our'); ?> <?php echo $this->lang->line('department'); ?></h2>
                    <?php if ($this->session->userdata('site_lang') == 'bengali') { ?>
                        <p class="text-justify"><?php echo isset($this->sections->bn_department) && !empty($this->sections->bn_department) ? $this->sections->bn_department : ''; ?></p>
                    <?php } else { ?>
                        <p class="text-justify"><?php echo isset($this->sections->department) && !empty($this->sections->department) ? $this->sections->department : ''; ?></p>
                    <?php } ?>
                </div>
            </div>
        </div>

        <?php if (isset($departments) && !empty($departments)) { ?>
            <div class="row">
                <?php foreach ($departments as $obj) { ?>
                    <div class="col-xxs-12 col-xs-6 col-sm-6 col-md-4">
                        <div class="project-box text-center ulockd-mrgn1250" style="min-height: 450px;">
                            <div class="pb-thumb">
                                <?php if ($obj->image) { ?>
                                    <img style="height: 230px;" class="img-responsive img-whp" src="<?php echo UPLOAD_PATH; ?>department-image/<?php echo $obj->image; ?>" alt="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $obj->bn_name : $obj->name; ?>" />
                                <?php } else { ?>
                                    <img style="height: 230px;" class="img-responsive img-whp" src="<?php echo IMG_URL; ?>department.jpg" alt="department">
                                <?php } ?>
                                <div class="overlay">
                                    <?php if ($this->session->userdata('site_lang') == 'bengali') { ?>
                                        <h4><?php echo $obj->bn_name; ?></h4>
                                    <?php } else { ?>
                                        <h4><?php echo $obj->name; ?></h4>
                                    <?php } ?>
                                </div>
                            </div>
                            <div class="pb-details">
                                <?php if ($this->session->userdata('site_lang') == 'bengali') { ?>
                                    <h3><?php echo $obj->bn_name; ?></h3>
                                <?php } else { ?>
                                    <h3><?php echo $obj->name; ?></h3>
                                <?php } ?>

                                <?php if ($this->session->userdata('site_lang') == 'bengali') { ?>
                                    <p class="text-justify"><?php echo strip_tags(word_limiter($obj->bn_description, 15)); ?></p>
                                <?php } else { ?>
                                    <p class="text-justify"><?php echo strip_tags(word_limiter($obj->description, 15)); ?></p>
                                <?php } ?>
                                <a class="btn ulockd-btn-thm2" href="<?php echo site_url('department/doctor/' . $obj->id); ?>">
                                    <?php echo $this->lang->line('our'); ?> <?php echo $this->lang->line('doctor'); ?>
                                    <span class="fa fa-angle-double-right"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                <?php } ?>
            </div>
        <?php } ?>
    </div>
</section>