@extends('layouts.master') @section('title', $title) @php $pur = $product->puruom?->name; $sel = $product->sellinguom?->name; $fmtQty = fn($purQty, $selQty) => $same_unit ? number_format($purQty, 2) . ' ' . $pur : number_format($purQty, 2) . ' ' . $pur . ' = ' . number_format($selQty, 2) . ' ' . $sel; $img = !empty($product->image) && file_exists(public_path('storage/products/' . $product->image)) ? asset('storage/products/' . $product->image) : asset('default/product_default.png'); @endphp @section('content') {{-- Edit product: the same form as the product list. --}} @include($view . '.modal')
| # | Batch | Purchase order | Store | Received | Expiration | Balance | Unit cost | Value | {{ __('messages.action') }} |
|---|
| # | Date | Reference | Batch | Store | In | Out | Unit |
|---|