@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
| Sr. |
Code |
Material Name |
Type |
Available Quantity |
Unit |
@php $materialIndex = 1; @endphp
@foreach($stock as $item)
@unless($item->material_type_id == 101)
| {{ $materialIndex++ }} |
{{ $item->material_no }} |
{{ $item->name }} |
{{ $item->mtname }} |
{{ number_format($item->total_received + $item->stockIn - $item->stockOut - $item->total_returned) }} |
{{ $item->uname }} |
@endunless
@endforeach
@endif
@if($type === 'product' && isset($pstock) && $pstock->count())
Product Stock
| Sr. |
Article No |
Product Name |
Size |
Stage |
Available Quantity |
Unit |
@php $productIndex = 1; @endphp
@foreach($pstock as $item)
@if($item->stockIn - $item->stockOut != 0)
| {{ $productIndex++ }} |
{{ $item->article_no }} |
{{ $item->name }} |
{{ $item->sname }} |
{{ $item->stname }} |
{{ number_format($item->stockIn - $item->stockOut) }} |
{{ $item->uname }} |
@endif
@endforeach
@endif
@if($type === 'machine' && isset($stock) && $stock->count())
Machine Material Stock
| Sr. |
Code |
Material Name |
Available Quantity |
Unit |
@php $machineIndex = 1; @endphp
@foreach($stock as $item)
@unless($item->material_type_id != 101)
| {{ $machineIndex++ }} |
{{ $item->material_no }} |
{{ $item->name }} |
{{ number_format($item->total_received + $item->stockIn - $item->stockOut - $item->total_returned) }} |
{{ $item->uname }} |
@endunless
@endforeach
@endif
@endsection