@extends('print.layout') @section('title', 'Daily_Receiving_Report_' . ($dfrom ?? date('d-m-Y')) . '_to_' . ($dto ?? date('d-m-Y'))) @section('content')
Daily Receiving Report
{{-- Report Header Information --}}
Report Date: {{ date('d-m-Y') }}
Period From: {{ isset($dfrom) ? date('d-m-Y', strtotime($dfrom)) : 'N/A' }}
Period To: {{ isset($dto) ? date('d-m-Y', strtotime($dto)) : 'N/A' }}
{{-- Daily Receiving Items --}} @if(isset($issueItem) && $issueItem->count() > 0)

Received Items

@php $index = 1; $product_id = ''; $size = ''; @endphp @foreach($issueItem as $item) @if($item->product_id == $product_id) @else @endif @if($item->sname == $size) @else @endif @php $product_id = $item->product_id; $size = $item->sname; @endphp @endforeach
Sr. Article No Item / Product Size Stage Quantity
{{ $index++ }}{{ $item->article_no ?? 'N/A' }} {{ $item->name ?? 'N/A' }}{{ $item->sname ?? 'N/A' }}{{ $item->stname ?? 'N/A' }} {{ $item->stockIn ?? '0' }} {{ $item->puname ?? '' }}
@else

No receiving records found for the selected period.

@endif @endsection