<!-- 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->session->userdata('site_lang') == 'bengali' ? $department->bn_name : $department->name; ?></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><a href="<?php echo site_url('departments'); ?>"><?php echo $this->lang->line('department'); ?></a> </li>
                        <li>></li>
                        <li><?php echo $this->session->userdata('site_lang') == 'bengali' ? $department->bn_name : $department->name; ?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Inner Pages Main Section -->

<!-- Our Department Doctor -->
<section class="ulockd-fservice bgc-snowshade">
    <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->session->userdata('site_lang') == 'bengali' ? $department->bn_name : $department->name; ?></h2>
                    <?php if ($this->session->userdata('site_lang') == 'bengali') { ?>
                        <p class="text-justify"><?php echo isset($department->bn_description) && !empty($department->bn_description) ? $department->bn_description : ''; ?></p>
                    <?php } else { ?>
                        <p class="text-justify"><?php echo isset($department->description) && !empty($department->description) ? $department->description : ''; ?></p>
                    <?php } ?>
                </div>
            </div>
        </div>

        <?php if (isset($doctors) && !empty($doctors)) { ?>
            <div class="row">
                <?php foreach ($doctors as $obj) { ?>
                    <div class="col-md-4 col-sm-4 col-xs-12">
                        <div class="doctor">
                            <div class="doctor-image">
                                <?php if ($obj->photo) { ?>
                                    <img src="<?php echo UPLOAD_PATH; ?>employee-photo/<?php echo $obj->photo; ?>" alt="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $obj->bn_name : $obj->name; ?>" />
                                <?php } elseif ($obj->gender == 'male') { ?>
                                    <img src="<?php echo IMG_URL; ?>doctor-male.png" alt="male" />
                                <?php } else { ?>
                                    <img src="<?php echo IMG_URL; ?>doctor-female.png" alt="female" />
                                <?php } ?>
                            </div>
                            <div class="doctor-details">
                                <h4><?php echo $this->session->userdata('site_lang') == 'bengali' ? $obj->bn_name : $obj->name; ?></h4>
                                <h5><?php echo $obj->specialist; ?></h5>
                                <p><?php echo $this->session->userdata('site_lang') == 'bengali' ? $obj->bn_designation : $obj->designation; ?></p>
                            </div>
                            <div class="doctorButton">
                                <div class="row">
                                    <a href="<?php echo site_url('appointment?department_id=' . $obj->department_id . '&doctor_id=' . $obj->user_id); ?>" class="col-md-6">
                                        <i class="fa fa-medkit" aria-hidden="true"></i>
                                        <?php echo $this->lang->line('make'); ?> <?php echo $this->lang->line('appointment'); ?>
                                    </a>
                                    <a class="col-md-1"> || </a>
                                    <a href="<?php echo site_url('doctor/' . $obj->id); ?>" class="col-md-5">
                                        <i class="fa fa-external-link" aria-hidden="true"></i>
                                        <?php echo $this->lang->line('read_more'); ?>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php } ?>
            </div>
        <?php } ?>
    </div>
</section>