<!--<td align="center" class="hidden-print"> <a id="{$mycheckData->stageFrom}" type="button" class="btn btn-default btn-lg editicon check"></a> </td>

use the id to call the modal id="4"-->



<!-- ======================= type 1   استقبال =========== --> 
        
        <!-- ======================= check report Modal Box =========== --> 
        <!-- Modal -->
        <div class="modal fade" id="checkReportModal1" tabindex="-1" role="dialog" aria-labelledby="checkReportModal1" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"> تقرير الفحص</h4>
                    </div>
                    <div class="modal-body">
                        <form id="checkReportInfo1" action="#" method="post" class="form-horizontal">
                        
                        	
                            <!------------------------------>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> تقرير الفحص</label>
                                <div class="col-lg-4">
                                    <textarea name="checkComment" cols="" rows="" class="form-control"></textarea>
                                </div>
                            </div>
                            <!------------------------------>
                           </br>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">المرحلة التالية</label>
                                <div class="col-lg-4"> 
                                        <select name="nextStage" id="nextStage" data-placeholder="اختر" class="select2 aw_m1" >
                                                <option>-- اختر المرحلة التالية --</option>
                        						<option value="1"> صيانة فورية</option>
                                                <option value="2"> صيانة خارجية</option>
                                                <option value="3"> تجهيز</option>
                                                <option value="4"> رفض</option>
                        
                                          </select>
                                </div>
                            </div>
                            
                            <!------------------------------>
                           
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default closeReport" id="1">اغلاق</button>
                        <button type="button" id="1" class="btn btn-primary insertcheckReport" >حفظ</button>
                    </div>
                </div>
                <!-- /.modal-content --> 
            </div>
            <!-- /.modal-dialog --> 
        </div>
        <!-- /.modal --> 
        <!-- ============================================= -->
        
        
        
        
        
         <!-- ======================= type 2  صيانة خارجية =========== --> 
        
        <!-- ======================= check report Modal Box =========== --> 
        <!-- Modal -->
        <div class="modal fade" id="checkReportModal2" tabindex="-1" role="dialog" aria-labelledby="checkReportModal2" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"> تقرير الفحص</h4>
                    </div>
                    <div class="modal-body">
                        <form id="checkReportInfo2" action="#" method="post" class="form-horizontal">
                        
                        	
                            <!------------------------------>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> تقرير الفحص</label>
                                <div class="col-lg-4">
                                    <textarea name="checkComment" cols="" rows="" class="form-control"></textarea>
                                </div>
                            </div>
                            <!------------------------------>
                           </br>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">المرحلة التالية</label>
                                <div class="col-lg-4"> 
                                        <select name="nextStage" id="nextStage" data-placeholder="اختر" class="select2 aw_m1" >
                                                <option>-- اختر المرحلة التالية --</option>
                        						<option value="1"> صيانة فورية</option>
                                                <option value="2"> صيانة خارجية</option>
                                                <option value="3"> تجهيز</option>
                                                <option value="4"> رفض</option>
                        
                                          </select>
                                </div>
                            </div>
                            
                            <!------------------------------>
                          <!-- </br>-->
                            <div class="form-group">
                                <label class="col-lg-2 control-label">الموردين</label>
                                <div class="col-lg-4"> 
                                        <select name="supplier" id="supplier" data-placeholder="اختر" class="select2 aw_m1" >
                                                <option>-- اختر المورد --</option>
                                                {foreach $suppliers as $mysupplier}
                        						<option value="{$mysupplier->supplierid}">{$mysupplier->suppliername}</option>
                                                {/foreach}
                                          </select>
                                </div>
                            </div>
                            
                            <!------------------------------>
                           <!--  date hiddeen-->
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default closeReport" id="2">اغلاق</button>
                        <button type="button" id="2" class="btn btn-primary insertcheckReport" >حفظ</button>
                    </div>
                </div>
                <!-- /.modal-content --> 
            </div>
            <!-- /.modal-dialog --> 
        </div>
        <!-- /.modal --> 
        <!-- ============================================= -->
        
        
        
        
         <!-- ======================= type 3  تجهيز =========== --> 
        
        <!-- ======================= check report Modal Box =========== --> 
        <!-- Modal -->
        <div class="modal fade" id="checkReportModal3" tabindex="-1" role="dialog" aria-labelledby="checkReportModal3" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"> تقرير الفحص</h4>
                    </div>
                    <div class="modal-body">
                        <form id="checkReportInfo3" action="#" method="post" class="form-horizontal">
                        
                        	
                            <!------------------------------>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> تقرير الفحص</label>
                                <div class="col-lg-4">
                                    <textarea name="checkComment" cols="" rows="" class="form-control"></textarea>
                                </div>
                            </div>
                            
                            <!------------------------------>
                           </br>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">المرحلة التالية</label>
                                <div class="col-lg-4"> 
                                        <select name="nextStage" id="nextStage" data-placeholder="اختر" class="select2 aw_m1" >
                                                <option>-- اختر المرحلة التالية --</option>
                        						<option value="1"> صيانة فورية</option>
                                                <option value="2"> صيانة خارجية</option>
                                                <option value="3"> تجهيز</option>
                                                <option value="4"> رفض</option>
                        
                                          </select>
                                </div>
                            </div>
                            
                            <!------------------------------>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default closeReport" id="3">اغلاق</button>
                        <button type="button" id="3" class="btn btn-primary insertcheckReport" >حفظ</button>
                    </div>
                </div>
                <!-- /.modal-content --> 
            </div>
            <!-- /.modal-dialog --> 
        </div>
        <!-- /.modal --> 
        <!-- ============================================= -->
        
        
        
         <!-- ======================= type 4  رفض =========== --> 
        
        <!-- ======================= check report Modal Box =========== --> 
        <!-- Modal -->
        <div class="modal fade" id="checkReportModal4" tabindex="-1" role="dialog" aria-labelledby="checkReportModal4" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"> تقرير الفحص</h4>
                    </div>
                    <div class="modal-body">
                        <form id="checkReportInfo4" action="#" method="post" class="form-horizontal">
                        
                        	
                            <!------------------------------>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> تقرير الفحص</label>
                                <div class="col-lg-4">
                                    <textarea name="checkComment" cols="" rows="" class="form-control"></textarea>
                                </div>
                            </div>
                            
                            <!------------------------------>
                            <div class="form-group">
                                <label class="col-lg-2 control-label"> سبب الرفض</label>
                                <div class="col-lg-4">
                                    <textarea name="reasonOfRejection" cols="" rows="" class="form-control"></textarea>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default closeReport" id="4">اغلاق</button>
                        <button type="button" id="4" class="btn btn-primary insertcheckReport" >حفظ</button>
                    </div>
                </div>
                <!-- /.modal-content --> 
            </div>
            <!-- /.modal-dialog --> 
        </div>
        <!-- /.modal --> 
        <!-- ============================================= -->