@extends('layouts.master') @section('title') استلام فاتورة مشتريات {{ $purchase->orderId }} @endsection @section('page-header')
@endsection @section('content') @include('financial_years.partials.alerts') @php $waiting = in_array($purchase->receipt_status, ['pending', 'partial'], true); $open = $waiting && ($canConfirm ?? false); $canPartial = auth()->user()->can('warehouse_receipts_partial') || auth()->user()->can('warehouse_receipts_manage'); $canPrint = auth()->user()->can('warehouse_receipts_print') || auth()->user()->can('warehouse_receipts_manage'); @endphp| رقم السند | النوع | التاريخ | بواسطة | الكمية المستلمة | مرتجع قبل الاستلام | القيمة | رقم القيد | |
|---|---|---|---|---|---|---|---|---|
| {{ $r->id }} | @if ($effective['is_complete']) كامل @else جزئي @endif | {{ $r->created_at->format('Y-m-d H:i') }} | {{ $r->receiver->name ?? '-' }} | {{ $fmt($effective['received_qty']) }} |
@if ($effective['returned_unreceived_qty'] > 0)
{{ $fmt($effective['returned_unreceived_qty']) }}
لم تُستلم
@else
-
@endif
|
{{ number_format($r->total_value, 2) }} | {{ $r->dely_record ?: '-' }} | @if ($canPrint)طباعة@endif |