@extends(ucfirst(getScope()).'.Layout.master') @section('content')
{{ $company_name}}
{!! $company_address !!}

{{_t('invoice.customer')}}

{{ idToUsername($order->user_id) }}

{{_t('invoice.date')}}

{{ $order->created_at }}

{{_t('invoice.address')}}

{{ $delivery_address }}

@if(getConfig('package','status'))
@foreach($order_products as $product) @php $product_info = getPackageInfo($product['product_id']) @endphp @endforeach
{{_t('invoice.description')}} {{_t('invoice.quantity')}} {{_t('invoice.Price')}} {{_t('invoice.Discount')}} {{_t('invoice.subtotal')}}

{{ $product_info->name }}

{{ $product_info->description }}

@if(!$product['quantity']) 1 @else {{ $product['quantity'] }} @endif {{ $product['subtotal'] }}$ {{ $product['discount'] }}$ {{ $product['total'] }}$
@endif @php $discount_total=0; @endphp @foreach($order->totals as $total) @if($total->opid==null)

{{ $total->title }}

{{ $total->amount }}$

@php if($total->type=='discount') { $discount_total = $discount_total+$total->amount; } @endphp @endif @endforeach

{{ _t('invoice.subtotal')}}

{{ $order->subtotal }}

{{ _t('invoice.discount')}}

{{ $discount_total }}$

{{ _t('invoice.total')}}

{{ $order->total }}$

{{ _t('invoice.Print')}}
@endsection