@extends('layouts.master') @section('title') سندات الاستلام السابقة @endsection @section('page-header')
@endsection @section('content') @include('financial_years.partials.alerts')| فاتورة الشراء | المورد | الحالة | سندات الاستلام | أول / آخر استلام | أمين المستودع | الكمية المستلمة | مرتجع قبل الاستلام | القيمة | أرقام القيود | ملاحظات | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @canany(['warehouse_receipts', 'warehouse_receipts_manage', 'warehouse_monitor']){{ $row->order_id }}@else{{ $row->order_id }}@endcanany
@if ($row->purchase && $row->purchase->Purchase_invoice_number)
فاتورة المورد: {{ $row->purchase->Purchase_invoice_number }}
@endif
|
{{ $row->supplier ?? '-' }} |
@if ($row->complete)
مكتمل
@else
جزئي
@if ($row->ordered > 0)
متبقي {{ $fmt(max(0, $row->ordered - $row->received - $row->returned)) }}
@endif
@endif
|
{{ $row->receipts->count() }} سند
@foreach ($row->receipts as $r)
@canany(['warehouse_receipts_print', 'warehouse_receipts_manage', 'warehouse_monitor'])
#{{ $r->id }}@if (!$loop->last)، @endif
@else
#{{ $r->id }}@if (!$loop->last)، @endif
@endcanany
@endforeach
|
{{ \Carbon\Carbon::parse($row->first_at)->format('Y-m-d H:i') }}
@if ($row->first_at != $row->last_at)
{{ \Carbon\Carbon::parse($row->last_at)->format('Y-m-d H:i') }} @endif |
{{ $row->receipts->map(fn ($r) => $r->receiver->name ?? null)->filter()->unique()->implode('، ') ?: '-' }} | {{ $fmt($row->received) }}@if ($row->ordered > 0) / {{ $fmt($row->ordered) }}@endif | @if ($row->returned > 0) {{ $fmt($row->returned) }} @else - @endif | {{ number_format($row->value, 2) }} | {{ $row->receipts->pluck('dely_record')->filter()->unique()->implode('، ') ?: '-' }} | {{ $row->receipts->pluck('notes')->filter()->unique()->implode(' — ') }} | @canany(['warehouse_receipts_print', 'warehouse_receipts_manage', 'warehouse_monitor'])طباعة@endcanany |
| لا توجد سندات. | |||||||||||