@extends('layouts.app') @section('title') Good Receiving View @endsection @section('button') Back @endsection @section('content')
GOOD RECEIVING DETAILS

@if ($good_receiving->attachment != null) {{ substr($good_receiving->attachment, 14) }} @else No Attachment @endif

PRODUCT/MATERIAL DETAILS

@foreach ($good_receiving_products as $good_receiving_product) @php $current_qc = $good_receiving_qcs ->where('product_id', $good_receiving_product->product_id) ->first(); $rejection_type = $current_qc ? $current_qc->type_of_rejection->type ?? '-' : '-'; $area = $good_receiving_locations ->where('product_id', $good_receiving_product->product_id) ->first(); $area_location = $area ? $area->area->name ?? '-' : '-'; $rack_location = $area ? $area->rack->name ?? '-' : '-'; $level_location = $area ? $area->level->name ?? '-' : '-'; @endphp @endforeach
Sr No Part No. Part Name Unit Incoming Qty Received Qty Rejected Qty Rejected Type Allocated Area
{{ $loop->iteration }} {{ $good_receiving_product->product->part_no }} {{ $good_receiving_product->product->part_name }} {{ $good_receiving_product->product->units->name ?? '' }}
{{-- LOCATIONS MODAL --}} {{-- REJECTION MODAL --}} {{-- REMARKS MODAL --}} @endsection