@extends('layouts.app') @section('content')

{{ $warehouse->name }}

تعديل
@csrf @method('DELETE')
بيانات المخزن
الموقع
{{ $warehouse->location ?? 'غير محدد' }}
إجمالي الأصناف المتوفرة
{{ $stock->count() }} صنف
آخر نشاط
{{ $recent_transactions->first() ? $recent_transactions->first()->created_at->diffForHumans() : 'لا يوجد' }}
آخر التحركات
@forelse($recent_transactions as $transaction)
{{ $transaction->type === 'in' ? 'وارد' : 'صادر' }} {{ $transaction->created_at->format('Y-m-d H:i') }}
{{ $transaction->item->name ?? 'صنف محذوف' }}
الكمية: {{ $transaction->quantity }} @if($transaction->reference) #{{ $transaction->reference }} @endif
@empty
لا توجد تحركات حديثة
@endforelse @if($recent_transactions->count() > 0) @endif
المخزون الحالي
@forelse($stock as $item_stock) @empty @endforelse
الصنف SKU الوحدة الكمية المتوفرة القيمة التقديرية
{{ $item_stock->item->name ?? 'غير معروف' }}
{{ $item_stock->item->sku ?? '-' }} {{ $item_stock->item->unit ?? '-' }}
{{ $item_stock->current_stock }}
@if(isset($item_stock->item->estimated_value) && $item_stock->item->estimated_value > 0) {{ number_format($item_stock->current_stock * $item_stock->item->estimated_value, 2) }} @else - @endif
المخزن فارغ

لا توجد أصناف متوفرة في هذا المخزن حالياً.

@endsection