@extends('boothagent.layout.app') @section('title','Inventory - Index') @push('headerscript') @endpush @section('content')

Receive Inventory

{{-- --}} @foreach($inventory as $r) @php $udetails=App\Models\UserDetail::where('user_id',$r->id)->first(); @endphp @php $vidhansabha=App\Models\VidhanSabha::where('id',$r->vidhansabha_id)->value('vidhansabha'); @endphp @php $category=App\Models\Category::where('id',$r->category_id)->value('category_name'); @endphp @php $user=App\Models\User::where('id',$r->user_id)->value('name'); @endphp @php $name=App\Models\User::where('id',$r->creator_id)->value('name'); @endphp {{-- --}} @endforeach
S.NO. Vidhan Sabha Name Category Name User Name Quantity Date creator ReceiveAction
{{ $loop->iteration }} {{ $vidhansabha}} {{ $category}} {{ $user}} {{ $r->quantity}} {{ date('d-m-Y', strtotime($r->date)) }} {{ $name }} @if($r->received == 1) @elseif($r->received == 2) @endif Edit Delete
@endsection @push('footerscript') @endpush