@extends('layouts.app') @section('content')
تقرير شامل لتحليل التكاليف الكلية للمشتريات
{{ session('success') }}
{{ $data['summary']['total_purchase_cost'] }}
{{ $data['summary']['po_count'] }} أوامر شراء
{{ $data['summary']['total_tax'] }}
{{ $data['cost_breakdown']['tax_percentage'] }}% من الإجمالي
{{ $data['summary']['total_shipping'] }}
{{ $data['cost_breakdown']['shipping_percentage'] }}% من الإجمالي
{{ $data['summary']['total_landed_cost'] }}
تكلفة الوحدة: {{ $data['summary']['average_cost_per_unit'] }}
متوسط تكلفة الوحدة
{{ $data['summary']['average_cost_per_unit'] }}
متوسط قيمة الفاتورة
{{ $data['summary']['average_invoice_value'] }}
| رقم الأمر | المورد | التاريخ | المبلغ الفرعي | الضريبة | الشحن | الإجمالي | الحالة |
|---|---|---|---|---|---|---|---|
| {{ $po['po_number'] }} | {{ $po['supplier_name'] }} | {{ $po['po_date'] }} | {{ number_format($po['subtotal'], 2) }} | {{ number_format($po['tax'], 2) }} | {{ number_format($po['shipping'], 2) }} | {{ number_format($po['total'], 2) }} | {{ ucfirst($po['status']) }} |
| الصنف | المطلوب | المستقبل | سعر الوحدة | الإجمالي | معدل الإكمال |
|---|---|---|---|---|---|
| {{ $product['name'] }} | {{ $product['quantity_ordered'] }} | {{ $product['quantity_received'] }} | {{ number_format($product['unit_cost'], 2) }} | {{ number_format($product['total_cost'], 2) }} |
@php
$completionRate = $product['quantity_ordered'] > 0
? ($product['quantity_received'] / $product['quantity_ordered']) * 100
: 0;
@endphp
{{ number_format($completionRate, 1) }}% |
لا توجد بيانات للعرض
حاول البحث بمعايير مختلفة
لا توجد بيانات متاحة
يرجى التأكد من وجود أوامر شراء في النظام