@include('layouts.errors-and-messages')
    
        
            
        
        
            
                  Order Information
                
                    
                        
                            | Date | 
                            Customer | 
                            Payment | 
                            Status | 
                        
                    
                    
                    
                        | {{ date('M d, Y h:i a', strtotime($order['created_at'])) }} | 
                        {{ $customer->name }} | 
                        {{ $order['payment'] }} | 
                        
                            
                         | 
                    
                    
                    
                    
                         | 
                         | 
                        Subtotal | 
                        {{ $order['total_products'] }} | 
                    
                    
                         | 
                         | 
                        Tax | 
                        {{ $order['tax'] }} | 
                    
                    
                         | 
                         | 
                        Discount | 
                        {{ $order['discounts'] }} | 
                    
                    
                         | 
                         | 
                        Order Total | 
                        {{ $order['total'] }} | 
                    
                    @if($order['total_paid'] != $order['total'])
                        
                             | 
                             | 
                            Total paid | 
                            {{ $order['total_paid'] }} | 
                        
                    @endif
                    
                
             
            
         
        @if($order)
            @if($order->total != $order->total_paid)
                
                    Ooops, there is discrepancy in the total amount of the order and the amount paid. 
                    Total order amount: {{ config('cart.currency') }} {{ $order->total }} 
                    Total amount paid {{ config('cart.currency') }} {{ $order->total_paid }}
                
            @endif
            
                @if(!$items->isEmpty())
                    
                          Items
                        
                            
                            | SKU | 
                            Name | 
                            Description | 
                            Quantity | 
                            Price | 
                            
                            
                            @foreach($items as $item)
                                
                                    | {{ $item->sku }} | 
                                    {{ $item->name }} | 
                                    {!! $item->description !!} | 
                                    {{ $item->pivot->quantity }} | 
                                    {{ $item->price }} | 
                                
                            @endforeach
                            
                        
                     
                @endif
                
                    
                        
                              Courier
                            
                                
                                    | Name | 
                                    Description | 
                                    Link | 
                                
                                
                                
                                    | {{ $order->courier->name }} | 
                                    {{ $order->courier->description }} | 
                                    {{ $order->courier->url }} | 
                                
                                
                            
                         
                        
                              Address
                            
                                
                                    | Address 1 | 
                                    Address 2 | 
                                    City | 
                                    Province | 
                                    Zip | 
                                
                                
                                
                                    | {{ $order->address->address_1 }} | 
                                    {{ $order->address->address_2 }} | 
                                    
                                        @if(isset($order->address->city))
                                            {{ $order->address->city }}
                                        @endif
                                     | 
                                    
                                        @if(isset($order->address->province))
                                            {{ $order->address->province }}
                                        @endif
                                     | 
                                    {{ $order->address->zip }} | 
                                
                                
                            
                         
                     
                 
             
            
            
        @endif
    
    
@endsection
@section('js')
    
@endsection