@php $totals = ['taxable_value' => 0]; @endphp
@if(!empty($receipt_details->display_name))

SANTHOSH ENTERPRISES @if(!empty($receipt_details->address))
{!! $receipt_details->address !!} @endif @if(!empty($receipt_details->contact))
{{ $receipt_details->contact }} @endif @if(!empty($receipt_details->website))
{{ $receipt_details->website }} @endif @if(!empty($receipt_details->tax_info1))
{{ $receipt_details->tax_label1 }} {{ $receipt_details->tax_info1 }} @endif @if(!empty($receipt_details->tax_info2))
{{ $receipt_details->tax_label2 }} {{ $receipt_details->tax_info2 }} @endif @if(!empty($receipt_details->location_custom_fields))
{{ $receipt_details->location_custom_fields }} @endif

@endif
TAX INVOICE
  Invoice Date:{{@format_date($receipt_details->invoice_date)}}   @if(!empty($receipt_details->invoice_no_prefix)) {!! $receipt_details->invoice_no_prefix !!} @endif {{$receipt_details->invoice_no}}
    Billing Address :     Shipping Address :

@if(!empty($receipt_details->customer_name))   Name : {{ $receipt_details->customer_name }} @endif @if(!empty($receipt_details->customer_info))
  Address :{!! $receipt_details->customer_info !!} @endif
@if(!empty($receipt_details->customer_tax_label))
  GSTIN :{{ $receipt_details->customer_tax_number }} @endif

@if(!empty($receipt_details->customer_name))   Name : {{ $receipt_details->customer_name }} @endif @if(!empty($receipt_details->customer_info))
  Address :@if(!empty($receipt_details->customer_info)){!! $receipt_details->customer_info !!}@endif @endif
@if(!empty($receipt_details->customer_tax_label))
  GSTIN :{{ $receipt_details->customer_tax_number }} @endif
@if($receipt_details->show_cat_code == 1) @endif @if(!empty($receipt_details->table_tax_headings) ) @foreach($receipt_details->table_tax_headings as $tax_heading) @php $totals[$tax_heading] = 0; @endphp @endforeach @endif @foreach($receipt_details->lines as $line) @if($receipt_details->show_cat_code == 1) @endif @if(!empty($receipt_details->table_tax_headings)) @foreach($receipt_details->table_tax_headings as $tax_heading) @endforeach @endif {{-- @if(!empty($line['modifiers'])) @foreach($line['modifiers'] as $modifier) @if($receipt_details->show_cat_code == 1) @endif @endforeach @endif --}} @endforeach @php $lines = count($receipt_details->lines); @endphp @for ($i = $lines; $i < 12; $i++) @if(!empty($receipt_details->table_tax_headings)) @foreach($receipt_details->table_tax_headings as $tax_heading) @endforeach @endif @if($receipt_details->show_cat_code == 1) @endif @endfor @php $colspan = 4; @endphp @if($receipt_details->show_cat_code == 1) @php $colspan = 5; @endphp @endif @if(!empty($receipt_details->table_tax_headings)) @foreach($receipt_details->table_tax_headings as $tax_heading) @endforeach @endif @if(!empty($receipt_details->taxes)) @foreach($receipt_details->taxes as $k => $v) @endforeach @endif @if(!empty($receipt_details->group_tax_details)) @foreach($receipt_details->group_tax_details as $key => $value) @endforeach @else @if( !empty($receipt_details->tax) ) @endif @endif @if(!empty($receipt_details->shipping_charges)) @endif @if( !empty($receipt_details->discount) ) @endif
S.No {!! $receipt_details->table_product_label !!} {!! $receipt_details->cat_code_label !!} {!! $receipt_details->table_qty_label !!} {!! $receipt_details->table_unit_price_label !!} ({{$receipt_details->currency['symbol']}}) Tax Value ({{$receipt_details->currency['symbol']}}) {!! $receipt_details->table_subtotal_label !!} ({{$receipt_details->currency['symbol']}})
{{$loop->iteration}} {{$line['name']}} {{$line['variation']}} @if(!empty($line['sub_sku'])), {{$line['sub_sku']}} @endif @if(!empty($line['brand'])), {{$line['brand']}} @endif @if(!empty($line['sell_line_note']))({{$line['sell_line_note']}}) @endif @if(!empty($line['lot_number']))
{{$line['lot_number_label']}}: {{$line['lot_number']}} @endif @if(!empty($line['product_expiry'])), {{$line['product_expiry_label']}}: {{$line['product_expiry']}} @endif
@if(!empty($line['cat_code'])) {{$line['cat_code']}} @endif {{$line['quantity']}} {{$line['units']}} {{$line['unit_price_before_discount']}} {{ str_replace(",","",$line['line_total'])-str_replace(",","",$line['price_exc_tax'])}} @php $totals['taxable_value'] += $line['price_exc_tax']; @endphp {{$line['line_total']}}
  {{$modifier['name']}} {{$modifier['variation']}} @if(!empty($modifier['sub_sku'])), {{$modifier['sub_sku']}} @endif @if(!empty($modifier['sell_line_note']))({{$modifier['sell_line_note']}}) @endif @if(!empty($modifier['cat_code'])) {{$modifier['cat_code']}} @endif {{$modifier['quantity']}} {{$modifier['units']}}       {{$modifier['unit_price_exc_tax']}} {{$modifier['line_total']}}
          
SubTotal : {{number_format($receipt_details->subtotal_unformatted,0)}}
{{$k}} (+) {{$v}}
{!! $key !!} (+) {{$value}}
{!! $receipt_details->tax_label !!} (+) {{$receipt_details->tax}}
{!! $receipt_details->shipping_charges_label !!} (+) {{$receipt_details->shipping_charges}}
{!! $receipt_details->discount_label !!} (-) {{$receipt_details->discount}}
{!! $receipt_details->total_label !!} {{$receipt_details->total}}
Amount Chargable in Words :