<?php
if (isset($indivisual_section_video_info)) {
    foreach ($indivisual_section_video_info['manage_video'] as $manage_video_info) {
        $serial++;
        ?>
        <div class="col-sm-12 gray_ttc " style="padding-top: 10px;padding-bottom: 10px;">

            <div class="col-sm-1">
                <?php echo $serial; ?>
            </div>

            <div class="col-sm-3">
                <?php
                $encrypt_manage_video_id = $this->encryption->encrypt($manage_video_info->manage_video_id);
                $encrypt_manage_video_id = str_replace("/", "%F2", $encrypt_manage_video_id);
                ?>
                <a href="<?php echo base_url() . 'view-single-video/' . $encrypt_manage_video_id ?>" target="_blank">
                    <?php echo $manage_video_info->manage_video_title; ?>
                </a>
            </div>

            <div class="col-sm-4">
                <?php
                foreach ($indivisual_section_video_info[$manage_video_info->manage_video_id] as $manage_video_location) {
                    $manage_video_location_id_data = $manage_video_location->manage_video_id . ',' . $manage_video_location->manage_video_location_id;
                    $encrypt_manage_video_location_id = $this->encryption->encrypt($manage_video_location_id_data);
                    $encrypt_data = str_replace("/", "%F2", $encrypt_manage_video_location_id);
                    ?>
                    <a href="<?php echo base_url() . 'view-single-video/' . $encrypt_data ?>" target="_blank">
                        <?php echo $manage_video_location->manage_video_location_resolution; ?>
                    </a>
                    <a href="javascript:void(0)" onclick="deleteSingleResolutionVideo('<?php //echo base_url() . 'delete-single-resolution-video'  ?>', '<?php //echo $manage_video_location->manage_video_location_id  ?>')">
                        <i class="fa fa-times-circle"></i>
                    </a>

                    <?php echo " | ";
                }
                ?>
            </div>

            <div class="col-sm-3">
                <?php
                if (isset($indivisual_section_video_info['work_files'][$manage_video_info->manage_video_id])) {
                    ?>
                    <a href="javascript:void(0)" target="_blank" onclick="downloadWorkFile('<?php echo base_url() . 'download-manage-admin-video-workfile/' ?>', '<?php echo $indivisual_section_video_info['work_files'][$manage_video_info->manage_video_id]->work_file_id; ?>')">
                        <i class="fa fa-download"></i>
                        <?php
                        echo $indivisual_section_video_info['work_files'][$manage_video_info->manage_video_id]->work_file_name;
                        ?>
                    </a>
                    <a href="javascript:void(0)" onclick="deleteVideoWorkfile('<?php echo base_url() . 'delete-admin-video-workfile' ?>', '<?php echo $indivisual_section_video_info['work_files'][$manage_video_info->manage_video_id]->work_file_type_id ?>')">
                        <i class="fa fa-times-circle"></i>
                    </a>
                    <?php
                }
                ?>

            </div>
            <div class="col-sm-1">
                <?php
                $encrypt_data = $encrypt_manage_video_id;
                $decrypt_data = str_replace("%F2", "/", $encrypt_data);
                $manage_video_id = $this->encryption->decrypt($decrypt_data);
                ?>

                <a href="javascript:void(0)" onclick="show_div_for_moving_video('<?php echo $manage_video_id ?>')">
                    <i class="fa fa-exchange" title="Move Video"></i>

                </a>
                <a href="<?php echo base_url() . 'edit-admin-video/' . $encrypt_manage_video_id.'/'.$section_id ?>" target="_blank">
                    <i class="fa fa-edit" title="Edit"></i>
                </a>
                <a href="javascript:void(0)" onclick="delete_single_section_video('<?php echo base_url() . 'delete-single-section-video' ?>', '<?php echo $section_id ?>', '<?php echo $manage_video_id ?>')">
                    <i class="fa fa-trash" title="Delete"></i>
                </a>

            </div>

        </div>

        <?php
    }
    echo $manage_section_video_pagination;
}

?>

