<?php $this->load->view('site/layout'); ?>
<?php $this->load->view('site/navbar'); ?>
<div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">

    <!-- begin:: Content Head -->
    <div class="kt-subheader  kt-grid__item" id="kt_subheader">
        <div class="kt-container  kt-container--fluid ">
            <div class="kt-subheader__main">
                <h3 class="kt-subheader__title"><a href="<?php echo base_url() ?>Dashboard/"><?php echo $this->lang->line('dashboard'); ?></a></h3>
                <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                <span class="kt-subheader__desc"><a href="<?= base_url('quraan/sessions') ?>"><?php echo $this->lang->line('sessions') ?></a></span>
            </div>

        </div>
    </div>

    <div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">

        <!-- begin:: Content Head -->
        <div class="kt-subheader  kt-grid__item" id="kt_subheader">
            <div class="kt-container  kt-container--fluid ">
                <div class="kt-subheader__main">
                    <h3 class="kt-subheader__title"><a href="<?php echo base_url() ?>Dashboard/"><?php echo $this->lang->line('dashboard'); ?></a></h3>
                    <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                    <span class="kt-subheader__desc"><?php echo $this->lang->line('plan'); ?></span>
                </div>

            </div>
        </div>
    </div>
    <div class="kt-portlet kt-portlet--mobile">
        <div class="kt-portlet__head kt-portlet__head--lg">
            <div class="kt-portlet__head-label">
                <span class="kt-portlet__head-icon">

                </span>
                <h3 class="kt-portlet__head-title">
                    <?php echo $this->lang->line('plan'); ?>
                </h3>
            </div>

        </div>
        <div class="kt-portlet__body">

            <!--begin: Datatable -->
            <table class="table table-striped- table-bordered table-hover" id="kt_table_1">
                <tbody>
                    <tr>

                        <th  colspan="4"><?php echo $this->lang->line('data') ?></th>

                    </tr>

                    <tr>
                        <th><?php echo $this->lang->line('student') ?></th>
                        <td><?= $plan->student_name; ?></td>
                        <th><?php echo $this->lang->line('the_type') ?></th>
                        <?php
                        $type = '';
                        switch ($plan->type) {
                            case 0:
                                $type = 'حفظ';
                                break;
                            case 1:
                                $type = 'مراجعة';
                                break;
                            case 2:
                                $type = 'سرد';
                                break;
                            case 3:
                                $type = 'تلاوة';
                                break;
                            case 4:
                                $type = 'تلقين';
                                break;
                            case 5:
                                $type = 'اختبار';
                                break;
                        }
                        ?>
                        <td><?= $type; ?></td>
                    </tr>

                    <tr>
                        <th><?= $this->lang->line('start-date') ?></th>
                        <td><?= $plan->date_from ?></td>
                        <th><?php echo $this->lang->line('end-date') ?></th>
                        <td><?= $plan->date_to ?> </td>
                    </tr>

                    <tr>
                        <th><?php echo $this->lang->line('from_surah') ?></th>
                        <td><?= $plan->from_surah_name ?> </td>
                        <th><?php echo $this->lang->line('from_ayah') ?></th>
                        <td><?= $plan->from_ayah; ?> </td>
                    </tr>

                    <tr>
                        <th><?php echo $this->lang->line('sessions_count_per_week') ?></th>
                        <td><?= $plan->sessions_count_per_week ?> </td>
                        <th><?php echo $this->lang->line('lines_count_per_session') ?></th>
                        <td><?= $plan->lines_count_per_session; ?> </td>
                    </tr>




                </tbody>
            </table>
            <div class="col-md-6" style="margin: 0 auto;">
                <table class="table table-bordered">
                    <tr>
                        <th><?php echo $this->lang->line('to_surah') ?></th>
                        <td><?= $plan->to_surah_name ?> </td>
                    </tr>
                    <tr>
                        <th><?php echo $this->lang->line('to_ayah') ?></th>
                        <td><?= $plan->to_ayah; ?> </td>
                    </tr>
                    <tr>
                        <th><?php echo $this->lang->line('sessions_count') ?></th>
                        <td><?= $plan->sessions_count ?> </td>
                    </tr>
                    <tr>
                        <th><?php echo $this->lang->line('lines_count') ?></th>
                        <td><?= $plan->expected_lines_count; ?> </td>
                    </tr>
                    <tr>
                        <th><?php echo $this->lang->line('pages_count') ?></th>
                        <td><?= $plan->expected_page_count ?> </td>
                    </tr>
                </table>
            </div>
        </div>

    </div>
</div>
<script src="<?php echo base_url() ?>public/plugins/global/plugins.bundle.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>public/js/scripts.bundle.js" type="text/javascript"></script>


<script src="<?php echo base_url() ?>public/plugins/custom/datatables/datatables.bundle.js" type="text/javascript"></script>


<script src="<?php echo base_url() ?>public/js/pages/crud/datatables/basic/basic.js" type="text/javascript"></script>
