@include('inventory.print.dynamic.head')
{!! $head !!}
@php // $digit = new NumberFormatter("en", NumberFormatter::SPELLOUT); $fs = explode(',',$setting->field_show); $fn = explode(',',$setting->field_name); $span = 0; @endphp @if (in_array(1, $fs)) @php $span++; @endphp @endif @if (in_array(2, $fs)) @php $span++; @endphp @endif @if (in_array(3, $fs)) @php $span++; @endphp @endif @if (in_array(4, $fs)) @endif @if (in_array(10, $fs)) @endif @if ($chalan != 1) @if (in_array(5, $fs)) @endif @if (store_info()->is_dp == 1) @endif @if (in_array(13, $fs)) @endif @if (in_array(6, $fs)) @endif @if (in_array(7, $fs)) @endif @endif @php $tot_qty = 0; @endphp @php $i = 0; $transactions = $printData['invoice']->use_status != 4 ? $printData['invoice']->transaction : $printData['invoice']->damageTransactions; @endphp @if(count($transactions) > 0) @foreach($transactions as $k=>$item) @if (in_array(1, $fs)) @endif @if (in_array(2, $fs)) @endif @if (in_array(3, $fs)) @endif @if (in_array(4, $fs)) {{-- --}} @endif @if (in_array(10, $fs)) @endif @if ($chalan != 1) @if (in_array(5, $fs)) @endif @if (store_info()->is_dp == 1) @endif @if (in_array(13, $fs)) @php $t = $price * $item->quantity; @endphp @endif @if (in_array(6, $fs)) @php $dc = ($price * $item->quantity) * ($item->dc_price/100); @endphp @endif @if (in_array(7, $fs)) @php $n = ($price * $item->quantity) - (($price * $item->quantity) * ($item->dc_price/100)); @endphp @endif @endif @endforeach @endif @if (in_array(8, $fs)) @if ($span!=0) @endif @if (in_array(4, $fs)) @php $span++; @endphp @endif @if (in_array(10, $fs)) @php $span++; @endphp @endif @if ($chalan != 1) @if (in_array(5, $fs)) @php $span++; @endphp @endif @if (in_array(13, $fs)) @endif @if (in_array(6, $fs)) @php $span++; @endphp @php $span++; @endphp @endif @if (in_array(7, $fs)) @php $span++; @endphp @endif @endif @endif
@if ($chalan != 1)
@if (in_array(12, $fs)) @if (in_array(13, $fs)) @endif @if (in_array(11, $fs) && $printData['invoice']->other_charge != 0) @endif @if ($printData['invoice']->other_dc_percentage != 0) @endif @endif @php $nt = ($setting->fraction_type == 1 ? ($printData['invoice']->net_total - (!in_array(11, $fs) ? $printData['invoice']->other_charge : 0)) : round(($printData['invoice']->net_total - (!in_array(11, $fs) ? $printData['invoice']->other_charge : 0)))); @endphp @if (in_array(12, $fs)) @endif @if ($printData['invoice']->grand_total > 0) @endif @if ($printData['invoice']->cash_amount > 0) @endif @if ($setting->show_balance == 1) @endif
@if (in_array(9, $fs))
   {{ ucwords(getNumberInWords(number_format($nt, 2, '.', '') )) }} {{ ($printData['currency'] ? $printData['currency']->name : '') }} only.
@endif
@endif
{!! $foot !!}
@include('inventory.print.dynamic.foot')