<div class="col-sm-12" style="padding: 0;" ><br>
    <div class="col-sm-12 padding-zero white" ><br>

        <div class="form-group col-sm-2 col-sm-offset-10" >
            <a href="javascript:void(0)"
               onclick="removeUploadWorkFile('<?php echo $counter; ?>')">
                <i class="fa fa-times-circle fa-2x"></i>
                <input type="hidden" id="upload_id<?php echo $counter; ?>" value="">
                <!--<input type="hidden" id="upload_status<?php // echo $counter;   ?>" name="upload_status[]" value="">-->
            </a>
        </div>


        <div class="form-group col-sm-6" >
            <div class="input-group">
                <input type="text" 
                       class="form-control"
                       id="work_file_name<?php echo $counter; ?>"
                       name="work_file_name[<?php echo $counter; ?>]"
                       oninput="checkWorkFileName(this.value,'<?php echo $counter; ?>')"
                       placeholder="Please Type Work File Name"   >
                <span class="input-group-addon"  title="Please Type Work File Name"><i class="fa fa-file"></i></span>
            </div>
            <input type="hidden" id="work_file_name_validate<?php echo $counter; ?>" value="">
            <div id="file_name_error<?php echo $counter; ?>" style="color: red;"></div>
        </div>
        <div class="col-sm-12"><br> </div>




        <div class="form-group col-sm-12">
            <div class="text-left padding-zero col-sm-1">  <label>Status  :  &nbsp;&nbsp;</label></div>
            <div class="radio radio-success col-sm-8 margin-zero "  >
                <?php
                if ($course_type == 1) {
                    ?>
                    <input  type="radio" 
                            name="work_files_management_access_level[<?php echo $counter; ?>]" 
                            id="Free" 
                            value="1" >
                    <label for="Free">Free</label>
                    <span style="margin-right: 20px"></span>
                    <input   type="radio" 
                             name="work_files_management_access_level[<?php echo $counter; ?>]" 
                             id="Paid" 
                             value="2">
                    <label for="Paid">Paid</label>
                    <input type="hidden" id="hidden_course_type_for_status" value="<?php echo $course_type; ?>">
                    <?php
                } else if ($course_type == 2) {
                    ?>
                    <input  type="radio" 
                            name="work_files_management_access_level[<?php echo $counter; ?>]" 
                            id="Free" 
                            value="1" checked>
                    <label for="Free">Free</label>
                    <input type="hidden" id="hidden_course_type_for_status" value="<?php echo $course_type; ?>">
                    <?php
                }
                ?>
            </div>
            <input type = "hidden" id = "work_files_management_access_level_validate<?php echo $counter; ?>" value = "">
            <div class = "col-sm-12" id = "work_files_management_access_level_error<?php echo $counter; ?>" style = "margin-left: 50px; color: red;"> </div>
        </div>
        <div class = "col-sm-12"><br> </div>





        <div class = "form-group col-sm-12" >
            <div class = "form-group col-sm-6" >
                <input tabindex = "-1"
                       style = "position: absolute; clip: rect(0px, 0px, 0px, 0px);"
                       id = "work_file<?php echo $counter; ?>"
                       name = "work_file[]"
                       class = "filestyle" data-icon = "false" type = "file" value = ""
                       onchange = "getWorkFile(this, '<?php echo $counter; ?>')" >
                <div class = "bootstrap-filestyle input-group">
                    <input class = "form-control " disabled type = "text" id = "view_file_name<?php echo $counter; ?>">
                    <span tabindex = "0" class = "group-span-filestyle input-group-btn">
                        <label for = "work_file<?php echo $counter; ?>" class = "btn btn-default ">
                            <span class = "buttonText">Choose file</span>
                        </label>
                    </span>
                </div>
                <input type = "hidden" id = "work_file_upload_status<?php echo $counter; ?>" value = "">
                <span class = "pull-left">[Upload File]</span>
            </div>
            <div class = "form-group col-sm-4" id = "progressID<?php echo $counter; ?>" style = "display: none">
                <div class = "progress">
                    <div class = "progress-bar progress-bar-success progress-bar-striped"
                         role = "workProgressBar" aria-valuenow = "40"
                         id = "workProgressBar<?php echo $counter; ?>"
                         aria-valuemin = "0"
                         aria-valuemax = "100" style = "">
                        <span class = "sr-only">40% Complete (success)</span>
                    </div>
                </div>
            </div>
        </div>
        <div id = "work_file_error<?php echo $counter; ?>"
             style = "margin-left: 20px; margin-top: -10px; color: red;"
             class = "col-sm-12"></div>
        <div id = "remaining_work_file_size<?php echo $counter; ?>"
             style = "margin-left: 20px; margin-top: -10px; color: green;"
             class = "col-sm-12"></div>
        <input type = "hidden" id = "work_file_validate<?php echo $counter; ?>" value = "">


    </div>
    <div class = "col-sm-12"><br> </div>
</div>
<div class = "col-sm-12" id = "upload_work_file_error<?php echo $counter; ?>" style = "margin-left: 20px; color: red;"></div>