@if($invoice['refer']) @endif
{{$general['bill_type']}}
{{$general['lang_bill_number']}} : {{prefix($general['prefix'],$invoice['ins'])}} # {{$invoice['tid']}}
{{$general['lang_bill_date']}} : {{dateFormat($invoice['invoicedate'],$company['main_date_format'])}}
{{$general['lang_bill_due_date']}} : {{dateFormat($invoice['invoiceduedate'],$company['main_date_format'])}}
{{trans('general.reference')}} : {{$invoice['refer']}}

@if ($invoice->customer->name_s) @endif
{{trans('general.our_info')}}: {{$general['person']}}:
{{$company['cname']}}
{{$company['address']}},
{{$company['city']}}, {{$company['region']}}
{{$company['country']}} - {{$company['postbox']}}
{{trans('general.phone')}}: {{$company['phone']}}
{{trans('general.email')}}: {{$company['email']}}
@if($company['taxid']) {{$general['tax_id']}}: {{$company['taxid']}} @endif {!! custom_fields_view(6,$invoice->ins,3,$invoice->ins) !!}
{{$invoice->customer->name}}
{{$invoice->customer->company}}
{{$invoice->customer->address}}, {{$invoice->customer->city}}
{{$invoice->customer->region}}, {{$invoice->customer->country}} - {{$invoice->customer->postbox}}
{{trans('general.phone')}} : {{$invoice->customer->phone}}
{{trans('general.email')}} : {{$invoice->customer->email}}
@if($invoice->customer->taxid) {{$general['tax_id']}}: {{$invoice->customer->taxid}}
@endif {!! custom_fields_view($invoice['person'],$invoice['person_id'],2,$invoice['ins']) !!}

{{trans('customers.address_s')}}
{{$invoice->customer->name_s}}
{{$invoice->customer->address_s}}, {{$invoice->customer->city_s}}
{{$invoice->customer->region_s}}, {{$invoice->customer->country_s}} @if($invoice->customer->postbox_s)- {{$invoice->customer->postbox_s}} @endif
{{trans('general.phone')}} : {{$invoice->customer->phone_s}},
{{trans('general.email')}} : {{$invoice->customer->email_s}}

@php $fill = true; @endphp {{-- exclusive --}} @if($invoice['tax_format']=='exclusive' OR $invoice['tax_format']=='inclusive' OR $invoice['tax_format']=='off') @if($invoice['tax']>0) @endif @if($invoice['discount']>0) @endif @foreach($invoice->products as $product) @php if ($fill == true) { $flag = ' m_fill'; } else { $flag = ''; } $fill = !$fill; $col_span=4; @endphp @if($invoice['tax']>0) @php $col_span++ @endphp @endif @if($invoice['discount']>0) @php $col_span++ @endphp @endif @if($product['product_des']) @endif @endforeach @endif {{-- cgst --}} @if($invoice['tax_format']=='cgst') @if($invoice['discount']>0) @endif @foreach($invoice->products as $product) @php if ($fill == true) { $flag = ' m_fill'; } else { $flag = ''; } $fill = !$fill; $col_span=5; @endphp @if($invoice['discount']>0) @php $col_span++ @endphp @endif @if($product['product_des']) @endif @endforeach @endif {{-- igst --}} @if($invoice['tax_format']=='igst') @if($invoice['discount']>0) @endif @foreach($invoice->products as $product) @php if ($fill == true) { $flag = ' m_fill'; } else { $flag = ''; } $fill = !$fill; $col_span=5; @endphp @if($invoice['discount']>0) @php $col_span++ @endphp @endif @if($product['product_des']) @endif @endforeach @endif
# {{trans('products.product_des')}} {{trans('products.qty')}} {{trans('products.price')}} {{trans('general.tax')}}{{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }} {{$product['product_name']}} @if(isset($product['serial'])){{$product['serial']}}@endif {{numberFormat($product['product_qty'],$invoice['currency'])}} {{$product['unit']}} {{amountFormat($product['product_price'],$invoice['currency'])}} {{amountFormat($product['total_tax'],$invoice['currency'])}}{{amountFormat($product['total_discount'],$invoice['currency'])}} {{amountFormat($product['product_subtotal'],$invoice['currency'])}}
{!!$product['product_des'] !!}
# {{trans('products.product_des')}} {{trans('products.qty')}} {{trans('products.price')}} {{trans('general.cgst')}} {{trans('general.sgst')}}{{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }} {{$product['product_name']}} {{numberFormat($product['product_qty'],$invoice['currency'])}} {{$product['unit']}} {{amountFormat($product['product_price'],$invoice['currency'])}} {{amountFormat($product['total_tax']/2,$invoice['currency'])}} ({{numberFormat($product['product_tax']/2,$invoice['currency'])}}%) {{amountFormat($product['total_tax']/2,$invoice['currency'])}} ({{numberFormat($product['product_tax']/2,$invoice['currency'])}}%) {{amountFormat($product['total_discount'],$invoice['currency'])}} {{amountFormat($product['product_subtotal'],$invoice['currency'])}}
{!!$product['product_des'] !!}
# {{trans('products.product_des')}} {{trans('products.qty')}} {{trans('products.price')}} {{trans('general.igst')}}{{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }} {{$product['product_name']}} {{numberFormat($product['product_qty'],$invoice['currency'])}} {{$product['unit']}} {{amountFormat($product['product_price'],$invoice['currency'])}} {{amountFormat($product['total_tax'],$invoice['currency'])}} ({{numberFormat($product['product_tax'],$invoice['currency'])}}%) {{amountFormat($product['total_discount'],$invoice['currency'])}} {{amountFormat($product['product_subtotal'],$invoice['currency'])}}
{!!$product['product_des'] !!}

@if($invoice['tax']>0) @endif @if($invoice['tax_format']=='cgst') @endif @if($invoice['discount']>0) @endif @if($invoice['shipping']>0) @endif @if((($invoice['total']-$invoice['pamnt'])>0) AND ($general['status_block'])) @else @endif

{{trans('general.status')}} : {{trans('payments.'.$invoice['status'])}} {{$invoice['pmethod']}}


@if($general['status_block'])

{{trans('general.grand_total')}} : {{amountFormat($invoice['total'],$invoice['currency'])}}

{{trans('general.round_off')}}: 0


{{trans('payments.paid_amount')}}: {{amountFormat($invoice['pamnt'],$invoice['currency'])}}

@endif @if(@$invoice['proposal'])
{{trans('general.proposal')}}:

{!! $invoice['proposal'] !!} @endif
{{trans('general.summary')}}
{{trans('general.subtotal')}} {{amountFormat($invoice['subtotal'],$invoice['currency'])}}
{{$general['tax_string_total']}} @if($invoice['tax_format']=='cgst')
CGST
SGST
@endif
{{amountFormat($invoice['tax'],$invoice['currency'])}} @if($invoice['tax_format']=='cgst')
{{amountFormat($invoice['tax']/2,$invoice['currency'])}}
{{amountFormat($invoice['tax']/2,$invoice['currency'])}} @endif
{{$general['tax_string_total']}} {{amountFormat($invoice['tax'],$invoice['currency'])}}
{{trans('general.discount')}} {{amountFormat($invoice['discount'],$invoice['currency'])}}
{{trans('general.shipping')}} {{amountFormat($invoice['shipping'],$invoice['currency'])}}
{{trans('general.balance_due')}} {{amountFormat($invoice['total']-$invoice['pamnt'],$invoice['currency'])}}
{{trans('general.grand_total')}} {{amountFormat($invoice['total'],$invoice['currency'])}}
@if(isset($image))


QR
@endif
{{trans('general.authorized_person')}}
({{$invoice->user->first_name}} {{$invoice->user->last_name}})

{!! custom_fields_view($invoice['custom'],$invoice['id'],2,true) !!}
{{$invoice['notes']}}
{{@$invoice->term->title}}:
{!!@$invoice->term->terms !!}