@extends('layouts.app') @section('title', 'تفاصيل أذن الصرف') @section('content')

تفاصيل أذن صرف الخامات

رقم الأذن: {{ $document->document_number }}

المعلومات الأساسية

رقم الأذن

{{ $document->document_number }}

التاريخ

{{ $document->document_date->format('Y-m-d') }}

المخزن

{{ $document->fromWarehouse->name ?? '-' }}

موقع الإنتاج

@if($document->recipient instanceof \App\Models\ProductionSiteOrLine) {{ $document->recipient->name ?? '-' }} @else - @endif

الإجماليات

إجمالي الكمية

{{ number_format($document->getTotalQuantity(), 2) }}

إجمالي التكلفة

{{ number_format($document->getTotalCost(), 2) }}

الحالة

@if($document->status === 'draft') مسودة @elseif($document->status === 'approved') معتمد @endif

الأصناف

@forelse($document->items as $item) @empty @endforelse
# الصنف الوحدة الكمية سعر الوحدة الإجمالي
{{ $loop->iteration }} {{ $item->item->name ?? '-' }} {{ $item->unit->name ?? '-' }} {{ number_format($item->quantity, 2) }} {{ number_format($item->unit_cost, 2) }} {{ number_format($item->quantity * $item->unit_cost, 2) }}
لا توجد أصناف
@if($document->description)

الملاحظات

{{ $document->description }}

@endif
رجوع طباعة @if($document->status === 'draft') @can('update', $document) تعديل @endcan @can('delete', $document)
@csrf @method('DELETE')
@endcan @can('approve', $document)
@csrf
@endcan @endif
@endsection