@include('header')
Stock Information

Stock

@csrf
@if(session('user_type') === 'Superadmin') @else {{-- Non-superadmin: Show store name, but store ID in hidden input --}} @php $userStore = $store->firstWhere('id', session('store_id')); @endphp @endif

Stocks

@php $sno = 1; @endphp @foreach($stock as $stock1) @endforeach
S.No Store Product Quantity Date Action
{{ $sno++ }} {{ $stock1->store->store }} {{ $stock1->product->product }} {{ $stock1->quantity }} {{ \Carbon\Carbon::parse($stock1->date)->format('d-m-Y') }}
@include('footer') @if(session('success')) @endif