@if(sizeof($arrayTicket[0]['ticket_detail']) < 1 )
                
                @endif
                @if(sizeof($arrayTicket[0]['ticket_detail']) > 0 )
                
                    
                        
                                @foreach($tirage as $tira)
                                    {{$tira['label']}}
                                @endforeach
                        
                        
                           
                           Resultat du Tirage
                                @foreach($resultat as $resul)
                                
{{str_pad($resul['lotto3'], 3, '0', STR_PAD_LEFT)}}
                                {{str_pad($resul['lot2'], 2, '0', STR_PAD_LEFT)}}
                                {{str_pad($resul['lot3'], 2, '0', STR_PAD_LEFT)}}
                                @endforeach
                                
                         
                        No : {{$arrayTicket[0]['ticket_number']}}
                        Seq : {{$arrayTicket[0]['sequence']}} 
                        Banque : {{$arrayTicket[0]['name']}}
                        Date : {{date('d-m-Y H:i:s',strtotime($arrayTicket[0]['dateticket']))}}
                        
                     
                    
                        
                            
                                | Jeu | Boule | Option | Mise | Gain | 
                            
Warning:  Invalid argument supplied for foreach() in /home/sglz/public_html/htlotto/glzadmin/resources/views/tirages/vue_ticket.blade.php on line 85
                            @if($B==1)
                            
                                | Borlette | 
                            @foreach($arrayTicket[0]['ticket_detail'] as $boulkey)
                            @if($boulkey['game_id']==1)
                            
                                |  | {{str_pad($boulkey['number'], 2, '0', STR_PAD_LEFT)}} |  | {{$boulkey['bet']}} | {{$boulkey['gain']}} | 
                            @endif
                            @endforeach
                            @endif
                            @if($M==1)
                            
                                | Mariage | 
                            @foreach($arrayTicket[0]['ticket_detail'] as $boulkey)
                            @if($boulkey['game_id']==2)
                            
                                |  | {{$b3}} |  | {{$boulkey['bet']}} | {{$boulkey['gain']}} | 
                            @endif
                            @endforeach
                            @endif
                            @if($L3==1)
                            
                                | Lotto 3 | 
                            @foreach($arrayTicket[0]['ticket_detail'] as $boulkey)
                            @if($boulkey['game_id']==3)
                            
                                |  | {{str_pad($boulkey['number'], 3, '0', STR_PAD_LEFT)}} |  | {{$boulkey['bet']}} | {{$boulkey['gain']}} | 
                            @endif
                            @endforeach
                            @endif
                            @if($L4==1)
                            
                                | Lotto 4 | 
                            @foreach($arrayTicket[0]['ticket_detail'] as $boulkey)
                            @if($boulkey['game_id']==4)
                            
                                |  | {{str_pad($boulkey['number'], 4, '0', STR_PAD_LEFT)}} | {{$boulkey['gameoption']}} | {{$boulkey['bet']}} | {{$boulkey['gain']}} | 
                            @endif
                            @endforeach
                            @endif
                            @if($L5==1)
                            
                                | Lotto 5 | 
                            @foreach($arrayTicket[0]['ticket_detail'] as $boulkey)
                            @if($boulkey['game_id']==5)
                            
                                |  | {{str_pad($boulkey['number'], 5, '0', STR_PAD_LEFT)}} | {{$boulkey['gameoption']}} | {{$boulkey['bet']}} | {{$boulkey['gain']}} | 
                            @endif
                            @endforeach
                            @endif
                        
                        
                         Total Mise: {{$arrayTicket[0]['price']}} HTG
                        @if($arrayTicket[0]['wincheck'])
                        
 Total Gain: {{$arrayTicket[0]['winamout']}} HTG
                        @endif