{{-- the product form (flow م۷, slice 1: melted gold, manual price; slice 2: the trade limits). posts exactly App\Catalog\ProductEditor::FIELDS; each checkbox has a hidden «0» twin so an unticked box arrives as a value (+PARTIAL-SAVE). slice 5د۲: the spread fields of the drawn mode only, and the mode itself as a hidden field. --}} @extends('layouts.mz') @php $v = fn (string $field) => old($field, $values[$field]); $isOn = fn (string $field) => (string) old($field, $values[$field] ? '1' : '0') === '1'; @endphp @section('title', $product ? 'ویرایش کالا' : 'کالای تازه') @section('credit', '1') @section('nav') @include('panel._nav') @endsection @section('content')
نوع کالا: {{ $familyWord }}. نوع پس از ساخت عوض نمیشود.
@endif @if ($errors->any())چیزی ذخیره نشد. خطای زیر هر فیلد را ببینید.
@endif @error('family'){{ $message }}
@enderror {{-- slice 6ب (PRD §4 «قیمت دستی پشتیبان … با کلید «استفاده از دستی»», owner plan questions 3, 6 and 9): a stored central-price product's backup — its own form, never a field of the product form; the price is ready in its field (the backup itself while on, else the central price customers last saw); its last ten switches below --}} @if ($backup) @php $mine = (string) old('backup_product') === (string) $product->id; @endphp{{ session('mz.saved') }}
@endif @if ($backup['on'])روشن از {{ $backup['since'] }}، با {{ $backup['price'] }}. خرید و فروش این کالا با همین قیمت است و قیمت مرکزی دنبال نمیشود.
@elseخاموش: قیمت از قیمت مرکزی میآید. اگر قیمت مرکزی کهنه شد یا قیمت بازار تلفنی را میخواهید، قیمت را بنویسید و «استفاده از دستی» را بزنید.
@endif @if ($backup['on']) @endif @if ($backup['history'] !== [])