{{-- the confirmation of an order (PRD §2 ج۳ step 4, flow ج۳ «پنجرهٔ تأیید»), and — when the lock had run out — «قیمت عوض شد» with the old and the new figures side by side (demo #29, #30). it shows the EXACT amount (demo #28). «ثبت» posts the sheet in its canonical form plus the amount shown here; the server recomputes it from the offer and refuses a mismatch (+PRICE-ECHO). the button is disabled after one press, and the server makes ONE order per offer anyway (پ۲-۴). --}} @extends('layouts.mz') @php $heading = !$changed ? 'تأیید سفارش' : ($changed['same'] ? 'قیمت دوباره قفل شد' : 'قیمت عوض شد'); $priceMoved = $changed && !$changed['same']; @endphp @section('title', $heading) @section('nav') @include('colleague._nav') @endsection @section('content')

{{ $heading }}

@if ($changed && $changed['same']) @endif @if ($priceMoved)
@if ($changed['old']) @endif
قبلی تازه
قیمت {{ $priceUnit }} {{ $changed['old_price'] }} {{ $summary['price'] }}
{{ $summary['coin'] ? 'تعداد' : 'وزن' }} {{ $changed['old']['weight'] }} {{ $summary['weight'] }}
مبلغ دقیق {{ $changed['old']['amount'] }} {{ $summary['amount'] }}
@endif
نوع
{{ $sideWord }}
کالا
{{ $product->title }}
@if ($summary['coin']) {{-- slice 5ه۱: a coin is a count; that count is what the ledger moves, so there is no «equivalent» --}}
تعداد
{{ $summary['weight'] }}
@else
وزن
{{ $summary['weight'] }}
عیار
{{ $summary['purity'] }}
{{ $equivalentLabel }}
{{ $summary['equivalent'] }}
@endif
قیمت {{ $priceUnit }}
{{ $summary['price'] }}
@if ($summary['budget'])
مبلغی که نوشتید
{{ $summary['budget'] }}
@endif
مبلغ دقیق
{{ $summary['amount'] }}{{ $summary['amount_words'] }}
@if (isset($post['note'])) {{-- slice 5ج۲ (decision 70): the note goes with «ثبت»; «اصلاح» brings it back to the sheet --}}

توضیح شما: {{ $post['note'] }}

@endif @include('colleague._lock') @if ($autoApproves ?? false) {{-- slice 5ب (found walking the rig): inside the seller's auto-approval range «the seller is not available, the order expires» would be untrue — it is approved the moment it is placed --}}

تأیید خودکار این سفارش با زدن «ثبت» همان لحظه تأیید می‌شود و منتظر فروشنده نمی‌ماند.

@else @include('colleague._presence') @endif
@csrf @foreach ($post as $field => $fieldValue) @endforeach @if ($changed) انصراف @else {{-- slice 5ج۲ (owner plan #1): «اصلاح» posts the same fields to its own route, which brings the sheet back through the session — the note never rides in a URL. a plain submit, so no script is needed --}} @endif
@endsection