@extends('layouts.app') @section('title', 'تفاصيل إشعار الاستقبال') @section('content')

تفاصيل إشعار الاستقبال

{{ $goodsReceiptNote->grn_number }}

العودة
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif @if(session('info'))

{{ session('info') }}

@endif

معلومات الاستقبال

{{ $goodsReceiptNote->grn_number }}

@if($goodsReceiptNote->status === 'received') مستقبل @elseif($goodsReceiptNote->status === 'accepted') مقبول @elseif($goodsReceiptNote->status === 'rejected') مرفوض @else قيد المراجعة @endif

{{ $goodsReceiptNote->receipt_date->format('Y-m-d') }}

{{ $goodsReceiptNote->supplier->name ?? 'N/A' }}

@if($goodsReceiptNote->purchaseOrder) {{ $goodsReceiptNote->purchaseOrder->po_number }} @else غير مرتبط بطلب شراء @endif

{{ $goodsReceiptNote->created_at->format('Y-m-d H:i') }}

الأصناف المستقبلة

@forelse($goodsReceiptNote->items as $item) @empty @endforelse
اسم الصنف الكمية المطلوبة الكمية المستقبلة الكمية المقبولة الكمية المرفوضة ملاحظات
{{ $item->item->name ?? 'Unknown' }}
{{ $item->unit->name ?? '' }}
{{ number_format($item->quantity_ordered, 2) }} {{ number_format($item->quantity_received, 2) }} {{ number_format($item->quantity_accepted, 2) }} @if($item->quantity_rejected > 0) {{ number_format($item->quantity_rejected, 2) }} @else - @endif {{ $item->rejection_reason ?? '-' }}

لا توجد أصناف في هذا الاستقبال

@if($goodsReceiptNote->quality_check_passed !== null || $goodsReceiptNote->quality_check_notes)

فحص الجودة

@if($goodsReceiptNote->quality_check_passed) نجح الفحص @else فشل الفحص @endif
@if($goodsReceiptNote->quality_check_notes)

{{ $goodsReceiptNote->quality_check_notes }}

@endif
@endif @if($goodsReceiptNote->discrepancies_noted)

تم ملاحظة تباينات في الاستقبال

@if($goodsReceiptNote->discrepancies_details)

{{ $goodsReceiptNote->discrepancies_details }}

@endif
@endif @if($goodsReceiptNote->notes)

ملاحظات عامة

{{ $goodsReceiptNote->notes }}

@endif @if($goodsReceiptNote->attachment)

المرفقات

@endif

مستندات مرتبطة

@if($goodsReceiptNote->status !== 'accepted' && $goodsReceiptNote->status !== 'rejected')

الإجراءات

@can('accept', $goodsReceiptNote)
@csrf @method('POST')
@endcan @can('reject', $goodsReceiptNote) @endcan @can('delete', $goodsReceiptNote)
@csrf @method('DELETE')
@endcan
@endif
@endsection