@extends('layouts.argon') @section('content')
Add new inventory!
@csrf
@foreach ($inventoryitems as $inventory) @endforeach

Edit and delete inventory
@php $i = 1; @endphp @foreach ($inventoryitems as $getdata) @php $i++; @endphp @endforeach
Sr No. Category Item Name Qty (In Stock) Actions

{{ $i }}

@php $getcat = DB::table('asset_heads')->where('id' , $getdata->cat_id)->first(); @endphp @if(isset( $getcat->name))
{{ $getcat->name }}
@endif
{{ $getdata->itemname }}
{{ $getdata->qty_instock }}
@endsection