@extends('layouts.app') @section('content')
عرض جميع إشعارات استقبال البضائع في المخازن
{{ session('success') }}
{{ session('error') }}
إجمالي الإشعارات
{{ $statistics['total_receipts'] ?? 0 }}
إشعار استقبال
إجمالي الكمية
{{ number_format($statistics['total_quantity'] ?? 0, 2) }}
وحدة
إجمالي التكلفة
{{ number_format($statistics['total_cost'] ?? 0, 2) }}
ريال
| # | رقم الإشعار | التاريخ | المخزن | الصنف | الكمية | التكلفة الإجمالية | الحالة | الإجراءات |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
{{ $receipt->document_number ?? 'N/A' }}
|
{{ is_string($receipt->document_date) ? $receipt->document_date : ($receipt->document_date ? $receipt->document_date->format('Y-m-d') : 'N/A') }} | {{ $receipt->warehouse_name ?? 'غير محدد' }} | {{ $receipt->item_name ?? 'غير محدد' }} | {{ number_format($receipt->quantity ?? 0, 2) }} | {{ number_format($receipt->total_cost ?? 0, 2) }} | @php $status = $receipt->status ?? 'draft'; $statusMap = [ 'draft' => ['text' => 'مسودة', 'color' => 'yellow'], 'approved' => ['text' => 'معتمد', 'color' => 'green'], 'cancelled' => ['text' => 'ملغي', 'color' => 'red'] ]; $statusInfo = $statusMap[$status] ?? ['text' => $status, 'color' => 'gray']; @endphp {{ $statusInfo['text'] }} |
@if($receipt->id)
عرض
@endif
|
|
لا توجد إشعارات استقبال حالياً جميع المخازن خالية من الإشعارات |
||||||||