@extends('layouts.app') @section('title', 'إذن إضافة مخزني ' . $stockIn->document_number . ' - '.config('app.name')) @section('breadcrumb') الرئيسية المخزون تفاصيل الإذن @endsection @push('styles') @endpush @section('content')

إذن إضافة مخزني

إذن جديد المخزون
@if(session('success'))
{{ session('success') }}
@endif

رقم الإذن

{{ $stockIn->document_number }}

التاريخ

{{ $stockIn->date?->format('Y-m-d') }}

المورد

{{ $stockIn->supplier?->name ?? '—' }}

التسوية المحاسبية

{{ ($stockIn->settlement_type ?? 'on_account') === 'cash' ? 'دفع نقدي (1010)' : 'على ذمة المورد (2010)' }}

@if($stockIn->reference)
مرجع خارجي

{{ $stockIn->reference }}

@endif @if($stockIn->notes)
ملاحظات

{{ $stockIn->notes }}

@endif
البنود
@foreach($stockIn->lines as $line) @endforeach
المنتج المستودع الكمية سعر الشراء الإجمالي
{{ $line->item?->display_name ?? $line->item?->name_ar ?? '—' }} {{ $line->warehouse?->name_ar ?? '—' }} {{ erp_qty($line->quantity) }} SAR {{ number_format((float) $line->purchase_price, 2) }} SAR {{ number_format((float) $line->quantity * (float) $line->purchase_price, 2) }}
الإجمالي SAR {{ number_format((float) $stockIn->line_value_total, 2) }}
@if($autoPrint) @endif @endsection