Logo @if(!$is_pdf) Back @endif
{{ $company->company_name }}
{{ $company->address }}, {{ $company->city }}, {{ $company->state }}
Phone: {{ $company->phone1 }}
GST NO: {{ $company->gst_no }}

Stock Report


@if(!$is_pdf)
{{-- Supplier --}} {{-- Product --}} {{-- Variant --}} {{-- Warehouse --}} {{-- Availability Range --}} Reset
{{-- Pass selected values to JS --}} @endif
@php $totalinwardGrandTotal= 0; $totalavlGrandTotal = 0; $totalcpGrandTotal = 0; $totalinwamtGrandTotal = 0; @endphp @foreach($inward_items as $inward) @php // Calculate inward total based on items $inwardTotal = 0; $avlTotal = 0; $cpTotal = 0; $inwardAmountTotal = 0; foreach ($inward['items'] as $item) { $inwardTotal += isset($item->availability) ? (float) $item->availability : 0; $avlTotal += isset($item->quantity) ? (float) $item->quantity : 0; $cpTotal += isset($item->basic_cost) ? (float) $item->basic_cost : 0; $rowAmount = ((float)$item->availability) * ((float)$item->basic_cost); $inwardAmountTotal += $rowAmount; } $totalinwardGrandTotal += $inwardTotal; $totalavlGrandTotal += $avlTotal; $totalcpGrandTotal += $cpTotal; $totalinwamtGrandTotal += $inwardAmountTotal; @endphp
{{ $inward['supplier_name'] }}
@foreach($inward['items'] as $item) @endforeach
Roll No Product Varient Place Roll-Qty Avl-Qty Rate(CP) Total Amount
{{ $inward['inward_id'] ?? '1234' }}- {{ $inward['supplier_name'] }}
{{ $item->id }} {{ $item->product_name }} {{ $item->varient_code ?? '-' }}-{{ $item->varient_name }} {{ $inward['warehouse'] }} {{ number_format((float) $item->quantity, 2) }} {{ number_format((float) $item->availability, 2) }} {{$item->basic_cost ?? ''}} {{ $item->availability * $item->basic_cost }}
Total {{ number_format($avlTotal, 2) }} {{ number_format($inwardTotal, 2) }} {{ number_format($cpTotal, 2) }} {{ $inwardAmountTotal}}
@endforeach
Grand Total Avl-Qty:{{ number_format($totalavlGrandTotal, 2) }} Inward-Qty:{{ number_format($totalinwardGrandTotal, 2) }} CP:{{ number_format($totalcpGrandTotal, 2) }} Total Amount:{{ number_format($totalinwamtGrandTotal, 2) }}

@if(!$is_pdf) Download @endif