@if (\Session::has('success'))
                            
                                
                                    
                            
                            @endif
                            @if (\Session::has('error'))
                            
                                
                                    
                            
                            @endif
                            
                                
                            
                            
                            
                            
                            {{ Form::open(array( 'action' => 'OrdersController@postOrder','class'=>'form-horizontal','files' => true,'role' => 'form', 'enctype'=>'multipart/form-data')) }}
                            
                                
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                
                                
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                
                                
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                
                                                                
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                    
                                        
                                            
                                            
                                                
                                        
                                    
                                
                                
                                    
                                        
                                            
                                                
                                    
                                    
                                
                            
                            
                            
                            
                            {{Form::close()}}
                        
                    {{\Session::get('success')}}
                                {{\Session::get('error')}}
                                OrderNumber: {{$order->OrderNumber}}
{{$order->OrderNumber}}
{{count($o_items)}}
{{$order->customer_name}}
{{$order->location}}
{{$order->customer_address}}
{{$order->customer_contact}}
{{$order->sales_rep}}
{{$order->notes}}
| ItemCode | Description | Unit Price | Qty | Discount | Subtotal | 
|---|---|---|---|---|---|
| {{@$oi->product_code}} | {{@$oi->product_description}} | Rs. {{number_format(@$oi->unit_price)}} | {{@$oi->qty}} | @if($oi->discount_percent >0 ) {{@$oi->discount_percent}}% @else 0 @endif | Rs. {{number_format(@$oi->sub_total)}} |