@extends('layouts.layout-horizontal') @section('title', 'Product Inwards') @php $closedItems = $closedItems ?? collect(); @endphp @section('content')
Product Inwards
{{-- Tabs --}}
{{-- Pending Tab (hidden) --}}
@foreach ($items as $item) @php $remaining = $item->qty - $item->inward_qty; $pct = $item->qty > 0 ? round(($item->inward_qty / $item->qty) * 100) : 0; @endphp @endforeach
# Product Vendor PO No PO Date Ordered Received Remaining Inward Entry Logs
{{ $loop->iteration }} {{ $item->product->name ?? '—' }} @foreach($item->suppliers as $s) {{ $s->name }} @endforeach @if($item->suppliers->isEmpty()) @endif {{ $item->purchaseOrder->po_no }} {{ $item->purchaseOrder->order_date->format('d-M-Y') }} {{ indian_number($item->qty, 0) }} {{ indian_number($item->inward_qty, 0) }}
{{ indian_number($remaining, 0) }}
@csrf
{{-- Closed POs Tab --}}
@foreach ($closedItems as $item) @php $remaining = $item->qty - $item->inward_qty; $pct = $item->qty > 0 ? round(($item->inward_qty / $item->qty) * 100) : 0; @endphp @endforeach
# Product Vendor PO No PO Date Ordered Received Remaining Logs
{{ $loop->iteration }} {{ $item->product->name ?? '—' }} @foreach($item->suppliers as $s) {{ $s->name }} @endforeach @if($item->suppliers->isEmpty()) @endif {{ $item->purchaseOrder->po_no }} {{ $item->purchaseOrder->order_date->format('d-M-Y') }} {{ indian_number($item->qty, 0) }} {{ indian_number($item->inward_qty, 0) }}
@if($remaining > 0) {{ indian_number($remaining, 0) }} @else Done @endif
{{-- Inward Logs Modal --}} @endsection @push('scripts') @endpush