@extends('layouts.app') @section('title', $product->exists ? __('Edit Product') : __('Add Item')) @section('content') @php $conversionRows = old('conversions', $product->unitConversions?->map(fn ($conversion) => ['unit' => $conversion->unit, 'factor' => $conversion->factor])->values()->all() ?? []); @endphp
{{ __('Add Item') }}
{{ __('Only product name, unit and prices are required. Other fields can stay simple.') }}
@csrf @if($product->exists)@method('PUT')@endif
{{ __('Stock is stored in this unit.') }}
{{ __('Example: 1 sack = 160 pao, enter 160.') }}
{{ __('Retail Unit Conversions') }}
{{ __('Example: 1 charak = 4 pao. Add charak here, not inside the sale invoice.') }}
{{ __('Sale Unit') }}{{ __('1 Unit = Base Qty') }}
{{ __('Simple Help') }}

{{ __('Retail') }} = {{ __('normal customer price') }}

{{ __('Wholesale') }} = {{ __('shopkeeper/dealer price') }}

{{ __('Opening / Current Stock') }} = {{ __('available quantity now in the base unit') }}

exists ? $product->is_active : true))>
@endsection @push('scripts') @endpush