@extends('layouts.app') @section('title', ($run->reference ?? 'أمر عمل').' - '.config('app.name')) @section('breadcrumb') الرئيسية › لوحة التحكم › جميع الأوامر › {{ $run->reference }} @endsection @section('content')
@if($run->isPosted()) تم الترحيل محاسبياً ومخزنياً. @else مسودة — الترحيل ينفّذ صرف المدخلات وإضافة التام والقيد. @endif
ملاحظات
| الصنف |
كمية مخططة |
هدر مخطط % |
كمية فعلية |
هدر فعلي % |
@if($run->isPosted())
تكلفة السطر |
@endif
|---|---|---|---|---|---|
| {{ $line->ingredientItem?->code }} — {{ $line->ingredientItem?->name_ar }} | {{ $line->planned_quantity !== null ? (rtrim(rtrim(number_format((float) $line->planned_quantity, 4, '.', ''), '0'), '.') ?: '0') : '—' }} | {{ $line->planned_scrap_percent !== null ? (rtrim(rtrim(number_format((float) $line->planned_scrap_percent, 4, '.', ''), '0'), '.') ?: '0') : '—' }} | {{ rtrim(rtrim(number_format((float) $line->quantity_consumed, 4, '.', ''), '0'), '.') ?: '0' }} | {{ $line->actual_scrap_percent !== null ? (rtrim(rtrim(number_format((float) $line->actual_scrap_percent, 4, '.', ''), '0'), '.') ?: '0') : '—' }} | @if($run->isPosted()){{ $line->line_cost !== null ? number_format((float) $line->line_cost, 2) : '—' }} | @endif