@extends('layouts.page') @section('title') Inventory
{{ $inventories->total() }}
@endsection @section('navs') @if (Auth::user()->hasAnyRole(['sc', 'aam', 'pdc', 'spc', 'dc', 'am', 'admin', 'zoe', 'second_inline', 'Exe'])) Inventory Manufacturer @endif Assigned   @if (Auth::user()->hasAnyDepartment(['it'])) To be Assigned @endif   @include ('search', ['model' => &$inventory, 'insearch' => ['assign_to' => request()->assign_to]]) @endsection @section('content') @include ('common.image_viewer')
Assigned Scrap/Sold Stock/Spare Repair Other

{{ $assignedCount }}

{{ $scrapSoldCount }}

{{ $stockSpareCount }}

{{ $repairCount }}

{{ $otherCount }}

@foreach ($inventories as $inventory)
Warning: Undefined variable $inventory in /var/www/html/pruthvi/resources/views/inventory/index.blade.php on line 72

Fatal error: Uncaught Error: Call to a member function assignment() on null in /var/www/html/pruthvi/resources/views/inventory/index.blade.php:72 Stack trace: #0 {main} thrown in /var/www/html/pruthvi/resources/views/inventory/index.blade.php on line 72
S.No. {!! $inventory->label('product_code') !!} {!! $inventory->label('product_name') !!} {!! $inventory->label('manufacture') !!} {!! $inventory->label('Created By') !!} {!! $inventory->label('purchase_date') !!} {!! $inventory->label('warranty_date') !!} {!! $inventory->label('employee_id') !!} {!! $inventory->label('assigned_department') !!} {!! $inventory->label('assigned_date') !!} {!! $inventory->label('Files') !!} {!! $inventory->label('status') !!}