Пример #1
0
                                                </td>
                                                <td>
                                                    <?php 
$edpNum = CommonFunction::edpCount($info->sia_number);
?>
                                                    @if($edpNum!=0)
                                                    EDP-{{$edpNum}}
                                                    @else
                                                        No EDP Listed Yet
                                                    @endif

                                                </td>
                                                <td>
                                                    <?php 
$status = CommonFunction::programStatus($info->sia_number);
?>
                                                    @if($status!=0)
                                                        <span style="color:green">Close</span>
                                                    @else 
                                                        <span style="color:red">Open</span>
                                                    @endif
                                                </td>
                                                <td><a  href="{{URL::to('surveillance/singleProgram/'.$info->sia_number)}}">Details</a></td>
                                            </tr>
                                            @endif

                                        @endforeach
                                        <tbody>
                                        
                                        </tbody>
							@endif		
						@endif			 
                <!-- /.box-header -->
					
					<div class="box-body">
					<div class='disNon'>
					{{$num=0}}
					</div>	
                    <table class="table table-bordered">
					@if($approvalInfos)
					@foreach($approvalInfos as $info)
                        <tbody>
						    <tr>               
								<th colspan='2' style='color:#72C2E6'>
								<?php 
$siaApproval = CommonFunction::programStatus($siaNumber);
?>
				
								@if($siaApproval==0)	
								<span class='hidden-print'>
									 @if('true'==CommonFunction::hasPermission('sc_issue_safety_concern',Auth::user()->emp_id(),'par_delete'))
										{{ HTML::linkAction('AircraftController@permanentDelete', 'P.D',array('sc_approval_info',$info->id), array('class' => 'glyphicon glyphicon-trash','style'=>'color:red;float:right;padding:5px;','onclick'=>" return confirm('Wanna Delete?')")) }}
									 @endif
									 @if('true'==CommonFunction::hasPermission('sc_issue_safety_concern',Auth::user()->emp_id(),'sof_delete'))
										{{ HTML::linkAction('AircraftController@softDelete', 'S.D',array('sc_approval_info',$info->id), array('class' => 'glyphicon glyphicon-trash','style'=>'color:red;float:right;padding:5px;','onclick'=>" return confirm('Wanna Delete?')")) }}
									 @endif
									@if('true'==CommonFunction::hasPermission('sc_issue_safety_concern',Auth::user()->emp_id(),'update'))
										 <a data-toggle="modal" data-target="#editapprovalInfos{{$info->id}}" href='' style='color:green;float:right;padding:5px;'>
											<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
										</a>
									 @endif
Пример #3
0
                                                        {{$value}},
                                                    @endforeach
                                               
                                                @endif
                                                @else
                                                    No Members Added!!
                                                @endif</td>
                                                <td>@if($insNum=CommonFunction::inspectionHappend($program->sia_number)>0) 
                                                    <span style="color:#0DD43F">Yes</span>
                                                    @else
                                                   <span style="color:#FD11BC">No</span>
                                                    @endif
                                                 </td>
                                                 <td>
                                                     <?php 
$programStatus = CommonFunction::programStatus($program->sia_number);
?>
                                                     @if($programStatus>0)
                                                        <span style="color: green">Close</span>
                                                     @else 
                                                       <span style="color: red">Open</span> 
                                                     @endif
                                                 </td>
                                                
                                                <td><a  href="{{URL::to('surveillance/singleProgram/'.$program->sia_number)}}">Details</a></td>
                                                
                                            </tr>
                                           
                                        @endforeach
                                        </tbody>