@extends('print.layout') @section('title', 'Stock_Report_' . date('d-m-Y')) @section('content')
Stock Report

Generated on: {{ \Carbon\Carbon::now()->format('d M Y H:i:s') }}

@if($type === 'material' && isset($stock) && $stock->count())

Material Stock

@php $materialIndex = 1; @endphp @foreach($stock as $item) @unless($item->material_type_id == 101) @endunless @endforeach
@endif @if($type === 'product' && isset($pstock) && $pstock->count())

Product Stock

@php $productIndex = 1; @endphp @foreach($pstock as $item) @if($item->stockIn - $item->stockOut != 0) @endif @endforeach
@endif @if($type === 'machine' && isset($stock) && $stock->count())

Machine Material Stock

@php $machineIndex = 1; @endphp @foreach($stock as $item) @unless($item->material_type_id != 101) @endunless @endforeach
@endif @endsection