@extends('Admin.layout') @section('content')
Stock Request
@foreach($products as $index => $product) @endforeach
SNO DATE STAFF NAME PRODUCT CODE NAME DESCRIPTION Image ACTION
{{ $index+1}} {{ $product->created_at->format('d-m-Y h:i A') }} {{ $product->staff_name }} {{ $product->product_id }} {{ $product->name }} {{ $product->description }} @if(!empty($product->images)) @php $images = json_decode($product->images, true); // decode JSON to array @endphp @if(is_array($images)) @foreach($images as $image) Product Image @endforeach @else No Images @endif @else No Images @endif
@endsection