@extends('layouts.app') @section('title', 'Material Report') @section('content')
@if($projectId) Project-wise stock for: {{ $projects->firstWhere('id', $projectId)->project_name ?? '' }} @else All projects combined stock overview @endif
Total Materials
Total Purchased
Total Consumed
Low Stock Items
| Material | Category | Unit | Purchased | Consumed | Current Stock | Min Stock | Status |
|---|---|---|---|---|---|---|---|
| {{ $row['material_name'] }} | {{ $row['category'] ?? '—' }} | {{ $row['unit'] }} | {{ number_format($row['purchased'], 2) }} | {{ number_format($row['consumed'], 2) }} | {{ number_format($row['current_stock'], 2) }} | {{ number_format($row['min_stock'], 2) }} | @if($row['is_low']) Low @else OK @endif |
| No materials found. | |||||||