@extends ('core.layouts.public_app') @section ('title', $general['bill_type'] . ' | ' . $company['cname']) @section ('icon', $company['icon']) @section('content')
@php $remaining = $invoice['total'] - $invoice['pamnt']; @endphp @if($invoice['status'] != 'canceled')
@if($general['status_block']) {{trans('payments.payment')}}: @if($online_payment) {{trans('payments.credit_card')}} @endif {{trans('payments.bank')}} - {{trans('payments.cash')}} @endif @if ($logged_in_user) @endif

@else

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

@endif

{{trans('general.our_info')}}

  • {{$company['cname']}}
  • {{$company['address']}},
  • {{$company['city']}}, {{$company['region']}},
  • {{$company['country']}}, @if($company['postbox']) - {{$company['postbox']}} @endif
  • {{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'],false,$invoice['ins']) !!}

{{$general['bill_type']}}

{{prefix($general['prefix'],$invoice['ins'])}} # {{$invoice['tid']}}

@if($invoice['refer'])

{{trans('general.reference')}} : {{$invoice['refer']}}

@endif
  • {{trans('general.gross_amount')}}
  • {{amountFormat($invoice['total'],$invoice['currency'])}}

{{trans('invoices.bill_to')}}

  • {{$invoice->customer->name}}
  • {{$invoice->customer->address}},
  • {{$invoice->customer->city}}, {{$invoice->customer->region}},
  • {{$invoice->customer->country}}, @if($invoice->customer->postbox) - {{$invoice->customer->postbox}}@endif
  • {{$invoice->customer->email}},
  • {{$invoice->customer->phone}},
  • @if($invoice->customer->taxid)
  • {{$general['tax_id']}}: {{$invoice->customer->taxid}}
  • @endif {!! custom_fields_view($invoice['person'],$invoice['person_id'],false,$invoice['ins']) !!}
@if ($invoice->customer->name_s)

{{trans('customers.address_s')}}

  • {{$invoice->customer->name_s}}
  • {{$invoice->customer->address_s}},
  • {{$invoice->customer->city_s}},{{$invoice->customer->region_s}}
  • {{$invoice->customer->country_s}} - {{$invoice->customer->postbox_s}}.
  • {{$invoice->customer->email_s}},
  • {{$invoice->customer->phone_s}},
@endif
@php $date_text = $general['lang_bill_due_date']; $fill=false; @endphp

{{$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.payment_terms')}} : {{@$invoice->term->title}}

@if(isset($invoice['proposal']))

{!! $invoice['proposal'] !!}

@endif
@if($invoice['tax_format']=='exclusive' OR $invoice['tax_format']=='inclusive') @foreach($invoice->products as $product) @php if ($fill == true) { $flag = ' m_fill'; } else { $flag = ''; } $fill = !$fill; @endphp @if($product['product_des']) @endif @if(isset($product->variation->id)) @endif @endforeach @elseif($invoice['tax_format']=='off' ) @foreach($invoice->products as $product) @endforeach @endif @if($invoice['tax_format']=='cgst') @foreach($invoice->products as $product) @php if ($fill == true) { $flag = ' m_fill'; } else { $flag = ''; } $fill = !$fill; @endphp @if($product['product_des']) @endif @if(isset($product->variation->id)) @endif @endforeach @endif @if($invoice['tax_format']=='igst') @foreach($invoice->products as $product) @php if ($fill == true) { $flag = ' m_fill'; } else { $flag = ''; } $fill = !$fill; @endphp @if($product['product_des']) @endif @if(isset($product->variation->id)) @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'])}} {{$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'] !!}
{!! custom_fields_view(3,@$product->variation->id,false,true) !!}
# {{trans('products.product_des')}} {{trans('products.price')}} {{trans('products.qty')}} {{trans('general.discount')}} {{trans('general.subtotal')}}
{{ $loop->iteration }}

{{$product['product_name']}}

{!!$product['product_des'] !!}

@if($product['serial']){{$product['serial']}}@endif
{{amountFormat($product['product_price'])}} {{numberFormat($product['product_qty'])}} {{$product['unit']}} {{amountFormat($product['total_discount'])}} {{amountFormat($product['product_subtotal'])}}
{!! custom_fields_view(3,$product['product_id'],false) !!}
# {{trans('products.product_des')}} {{trans('products.qty')}} {{trans('products.price')}} {{trans('general.cgst')}} {{trans('general.sgst')}} {{trans('general.discount')}} {{trans('general.subtotal')}}
# {{$product['product_name']}} {{numberFormat($product['product_qty'])}} {{$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'] !!}
{!! custom_fields_view(3,@$product->variation->id,false,true) !!}
# {{trans('products.product_des')}} {{trans('products.qty')}} {{trans('products.price')}} {{trans('general.igst')}} {{trans('general.discount')}} {{trans('general.subtotal')}}
# {{$product['product_name']}} {{numberFormat($product['product_qty'])}} {{$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'] !!}
{!! custom_fields_view(3,@$product->variation->id,false,true) !!}

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

@if($invoice['pmethod'])

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

@endif @if($invoice['notes'])


{{trans('general.note')}}:

{{$invoice['notes']}} @endif

{{trans('general.summary')}}

@if($invoice['tax']>0) @endif @if($invoice['discount']>0) @endif @if($invoice['shipping']>0) @if($invoice['ship_tax']>0) @endif @endif @if( $general['status_block']) @endif
{{trans('general.subtotal')}} {{amountFormat($invoice['subtotal'],$invoice['currency'])}}
{{$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.shipping_tax')}} ({{trans('general.'.$invoice['ship_tax_type'])}}) {{amountFormat($invoice['ship_tax'],$invoice['currency'])}}
{{trans('general.total')}} {{amountFormat($invoice['total'],$invoice['currency'])}}
{{trans('general.payment_made')}} (-) {{amountFormat($invoice['pamnt'],$invoice['currency'])}}
{{trans('general.balance_due')}} {{amountFormat($invoice['total']-$invoice['pamnt'],$invoice['currency'])}}

{{trans('general.authorized_person')}}

signature
({{$invoice->user->first_name}} {{$invoice->user->last_name}})
@if(isset($invoice->attachment)) @foreach($invoice->attachment as $row) @endforeach
{{$row['value']}}
@endif
@if($online_payment) @endif @endsection