@php $existingItems = $pesticideInventory->pesticideInventoryItems->map(function($item) { return [ 'pesticide_id' => $item->pesticide_id, 'pesticide_name' => $item->pesticide->name, 'quantity' => $item->quantity, 'amount' => $item->amount, 'buy_price' => $item->buy_price, 'tax' => $item->tax, ]; })->toArray(); @endphp @extends('admin.layouts.layouts') @section('title', 'Edit | Pesticide Inventory') @section('page-css') @endsection @section('content')