@extends('print.layout') @section('title', 'Material_Info_' . ($material['material_no'] ?? 'N/A') . '_' . date('d-m-Y')) @section('content')
Material Information
{{-- Material Header Information --}}
Material No: {{ $material['material_no'] ?? 'N/A' }}
Material Name: {{ $material['name'] ?? 'N/A' }}
Material Type: {{ $material['mtname'] ?? 'N/A' }}
Unit: {{ $material['uname'] ?? 'N/A' }}
Current Price: {{ isset($material['cprice']) ? number_format($material['cprice'], 2) : 'N/A' }}
Current Stock: {{ isset($material['quantity']) ? number_format($material['quantity']) : '0' }} {{ $material['uname'] ?? '' }}
Location: {{ $material['location'] ?? 'N/A' }}
Status: {{ $material['status'] ?? 'Active' }}
{{-- Vendor Information --}}

Vendor Information

Vendor No: {{ $material['vendor_no'] ?? 'N/A' }}
Vendor Name: {{ $material['fname'] ?? 'N/A' }}
{{-- Description --}} @if(isset($material['description']) && !empty($material['description']))

Description

{!! nl2br(e(strip_tags($material['description']))) !!}
@endif {{-- Material Images --}} @if(isset($image) && $image->count() > 0)

Material Images

@foreach($image as $img)
Material Image
{{ $img->image_name }}
@endforeach
@endif {{-- Summary --}}
Current Stock Value: {{ isset($material['quantity']) && isset($material['cprice']) ? number_format($material['quantity'] * $material['cprice'], 2) : 'N/A' }}
Material Status: {{ $material['status'] ?? 'Active' }}
@endsection