@extends('layouts.app') @section('title', 'أوامر الشراء - '.config('app.name')) @section('breadcrumb') الرئيسية المشتريات أوامر الشراء @endsection @section('content')
@if (session('import_result')) @endif @if (session('error'))
{{ session('error') }}
@endif @if (session('success'))
{{ session('success') }}
@endif @php $poIndexSupplierOptions = collect($suppliers ?? [])->map(fn ($s) => [ 'value' => $s->id, 'label' => trim((string) ($s->code !== '' && $s->code !== null ? $s->code.' — ' : '').(string) ($s->name_ar ?? $s->name ?? '')), ])->values()->all(); @endphp
مسح

أوامر الشراء

@forelse($orders as $order) @empty @endforelse
رقم الأمر المورد التاريخ تاريخ التسليم المتوقع الحالة الضريبة الإجمالي الإجراءات
{{ $order->display_order_number }} {{ $order->supplier?->getLocalizedDisplayName() ?? '—' }} {{ $order->order_date?->format('Y-m-d') }} {{ $order->expected_delivery_date?->format('Y-m-d') ?? '—' }} {{ $order->status }} SAR {{ number_format((float) $order->total_tax, 2) }} SAR {{ number_format((float) $order->total, 2) }}
@if($order->status === 'معلق') @endif
لا توجد أوامر شراء
@if($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection