<table class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
    <tbody>
        <tr>
            <th><?php echo $this->lang->line('school_name'); ?></th>
            <td><?php echo $complain->school_name; ?></td>
        </tr>
        <tr>
            <th><?php echo $this->lang->line('academic_year'); ?></th>
            <td><?php echo $complain->session_year; ?></td>
        </tr>
        <tr>
            <th><?php echo $this->lang->line('complain_type'); ?></th>
            <td><?php echo $complain->type; ?></td>
        </tr>
        <tr>
            <th><?php echo $this->lang->line('complain_by'); ?></th>
            <td>
                <?php
                $user = get_user_by_role($complain->role_id, $complain->user_id);
                if(isset($user) && !empty($user)){
                    echo $user->name;
                    ?>
                    [<?php echo $complain->role_name ?>]
                <?php } ?>
            </td>
        </tr>
        
        <tr>
            <th><?php echo $this->lang->line('complain'); ?></th>
            <td><?php echo $complain->description; ?></td>
        </tr>
        <tr>
            <th><?php echo $this->lang->line('complain_date'); ?></th>
            <td><?php echo date($this->global_setting->date_format, strtotime($complain->complain_date)); ?></td>
        </tr>
        <?php if($complain->action_note){ ?>
        <tr>
            <th><?php echo $this->lang->line('action'); ?></th>
            <td><?php echo $complain->action_note; ?></td>
        </tr>
        <tr>
            <th><?php echo $this->lang->line('action_date'); ?></th>
            <td><?php echo date($this->global_setting->date_format, strtotime($complain->action_date)); ?></td>
        </tr>
        <?php } ?>
    </tbody>
</table>
