@extends('admin.layouts.master') @section('title', 'استهلاك المواد الخام') @section('page-header') @include('admin.reports._header', [ 'title' => 'استهلاك المواد الخام', 'subtitle' => 'تحليل استهلاك الورق والزنكات والأحبار للتخطيط الدقيق', 'icon' => 'ti-truck-loading', 'color' => 'info', ]) @endsection @section('content') @include('admin.reports._filters', ['from'=>$from, 'to'=>$to, 'showCompare'=>false])
أهمية متابعة استهلاك المواد: تساعدك على تحديد كميات الشراء الدورية بدقة، تقليل التخزين الزائد، وضمان عدم النفاذ.
إجمالي الفرخات المستهلكة

{{ number_format($totalSheets) }}

فرخ
فرخات الفاقد

{{ number_format($totalWasteSheets) }}

{{ $totalSheets > 0 ? round($totalWasteSheets/$totalSheets*100, 1) : 0 }}% من الإجمالي
تكلفة الورق

{{ number_format($totalPaperCost, 0) }}

ج.م
الزنكات المستخدمة

{{ number_format($platesUsed) }}

زنك (CTP)

استهلاك الورق حسب النوع

@forelse($paperConsumption as $p) @php $wastePct = $p->total_sheets > 0 ? round($p->total_waste / $p->total_sheets * 100, 1) : 0; $cost = ($p->total_sheets ?? 0) * ($p->paperItem?->cost_price ?? 0); @endphp @empty @endforelse
الصنفالجراميةالمقاس الطلبات الوحدات المنتجة فرخات مستخدمة فرخات فاقد % فاقد التكلفة
{{ $p->paperItem?->name ?? 'غير محدد' }}
{{ $p->paperItem?->code }}
{{ $p->paperItem?->paper_weight ? $p->paperItem->paper_weight.' جم' : '-' }} {{ $p->paperItem?->paper_size ?? '-' }} {{ $p->orders_count }} {{ number_format($p->units_produced) }} {{ number_format($p->total_sheets) }} {{ number_format($p->total_waste) }} {{ $wastePct }}% {{ number_format($cost, 2) }}
لا يوجد استهلاك في هذه الفترة

استهلاك المواد حسب نوع الطباعة

@foreach($byPrintingType as $row) @endforeach
نوع الطباعةعدد الوحداتالفرخاتالزنكات
{{ ['offset'=>'أوفست','digital'=>'ديجيتال','flex'=>'فلكس','packaging'=>'تغليف'][$row->printing_type] ?? $row->printing_type }} {{ number_format($row->units) }} {{ number_format($row->sheets) }} {{ number_format($row->plates) }}
@endsection