@foreach($salesInvoice->salesInvoiceDetails as $index => $item) @endforeach @if($salesInvoice->discount_inv != null) @endif @foreach($salesInvoice->salesInvoiceTaxes as $key => $tax) @endforeach @if($salesInvoice->shipping_expense_inv != null) @endif @if($salesInvoice->down_payment_inv != null) @endif @if($salesInvoice->paid_to_supplier_inv != null) @endif @if($salesInvoice->payments_total > 0.00) @endif @if($salesInvoice->notes != '') @endif

{{trans('applang.sales_invoice')}}

{{$companyData->business_name}}
logo
{{trans('applang.the_client')}}
{{$salesInvoice->client->full_name}}
@if($salesInvoice->client->street_address != null) {{$salesInvoice->client->street_address}}
{{$salesInvoice->client->state}}, {{$salesInvoice->client->city}}, {{$salesInvoice->client->postal_code}}
@endif
{{trans('applang.invoice_number')}}# {{$salesInvoice->inv_number}}
{{trans('applang.issue_date')}}: {{$salesInvoice->issue_date}}
{{trans('applang.due_date')}}: {{$salesInvoice->due_date}}
{{trans('applang.print_date')}}: {{\Carbon\Carbon::now()->format('Y-m-d')}}
# {{trans('applang.item')}} {{trans('applang.description')}} {{trans('applang.unit_price')}} {{trans('applang.quantity')}} {{trans('applang.total')}}
{{$index +1}} {{\App\Models\ERP\Inventory\Product::where('id', $item->product_id)->pluck('name')->first()}} {{$item->description}} {{$item->unit_price}} {{$currency_symbol}} {{$item->quantity}} {{$item->row_total}}

{{trans('applang.invoice-thanks')}}.

{{trans('applang.total_before')}} {{$salesInvoice->subtotal}}
{{trans('applang.discount')}} {{$salesInvoice->discount_inv}}
{{$tax->total_tax_inv}} {{$tax->total_tax_inv_sum}}
{{trans('applang.shipping_expense')}} {{$salesInvoice->shipping_expense_inv}}
{{trans('applang.down_payment')}} {{$salesInvoice->down_payment_inv}}
{{trans('applang.due_amount')}} {{$salesInvoice->due_amount}}
{{trans('applang.paid')}} {{$salesInvoice->paid_to_supplier_inv}}
{{trans('applang.due_amount_after_paid')}} {{$salesInvoice->due_amount_after_paid}}
{{trans('applang.payments_total')}} -{{number_format($salesInvoice->payments_total,0,'.','')}} {{$companyData->basic_currency_symbol}}
{{trans('applang.due_amount_after_payments')}} {{number_format($salesInvoice->due_amount_after_payments, 0, '.', '')}} {{$companyData->basic_currency_symbol}}
{{trans('applang.notes')}}
{!! $salesInvoice->notes !!}