@if ($customer_results && count($customer_results) > 0)
    @foreach ($customer_results as $item)
  • {{ $item->file_number }} - {{ $item->first_name }} - {{ $item->phone_number_1 }}
  • @endforeach
@elseif($customer_query != '' && count($customer_results) == 0)
  • {{ __('main.no_customers_found') }}
@endif
# {{ __('main.particulars') }} {{ __('main.selling_price') }} [{{ getCurrency() }}] {{ __('main.rate') }} [{{ getCurrency() }}] {{ __('main.qty') }} {{ __('main.tax') }} % {{ __('main.tax_amount') }} {{ __('main.total') }}
@php $currentcount = 0; @endphp @foreach ($cart_items as $key => $item) @php $product = \App\Models\Product::find($item[0]['product']); $currentcount++; $itemtaxtotal = 0; $itemtotal = 0; $localrate = 0; if (getTaxType() == 2) { $localrate = $selling_price[$key] * (100 / (100 + $tax ?? 15)); $itemtotallocal = $selling_price[$key] * $quantity[$key] * (100 / (100 + $tax ?? 15)); $itemtaxtotal = $selling_price[$key] * $quantity[$key] - $itemtotallocal ?? 0; $itemtotal = $selling_price[$key] * $quantity[$key]; } else { $itemtotallocal = $selling_price[$key] * $quantity[$key]; $localrate = $selling_price[$key]; $itemtaxtotal = ($itemtotallocal * $tax) / 100; $itemtotal = $itemtotallocal + $itemtaxtotal; } @endphp @endforeach @foreach ($material_items as $key => $item) @php $currentcount++; $material = \App\Models\Material::find($item[0]['product']); $itemtaxtotal = 0; $itemtotal = 0; $itemrate = 0; if (getTaxType() == 2) { $itemrate = $matrate[$key] * (100 / (100 + $tax ?? 15)); $itemtotallocal = $matrate[$key] * $matqty[$key] * (100 / (100 + $tax ?? 15)); $itemtaxtotal = $matrate[$key] * $matqty[$key] - $itemtotallocal ?? 0; $itemtotal = $matrate[$key] * $matqty[$key]; } else { $itemtotallocal = $matqty[$key] * $matrate[$key]; $itemrate = $itemtotallocal; $itemtaxtotal = ($itemtotallocal * $tax) / 100; $itemtotal = $itemtotallocal + $itemtaxtotal; } @endphp @endforeach
{{ $currentcount }}
{{ $product->name }}
{{ getFormattedCurrency($localrate ?? 0) }}
{{ $tax }} {{ getFormattedCurrency($itemtaxtotal) }} {{ getFormattedCurrency($itemtotal) }}
{{ $currentcount }}
{{ $material->name }}
{{ $matrate[$key] }} {{ number_format($itemrate, 2) }}
{{ $matqty[$key] }} {{ getUnitType($material->type) }}
{{ $tax }} {{ getFormattedCurrency($itemtaxtotal) }} {{ getFormattedCurrency($itemtotal) }}