@extends('layouts.app') @section('content')
عرض وإدارة جميع أوامر الشراء
إجمالي الأوامر
{{ $data->total() ?? 0 }}
إجمالي المبلغ
{{ number_format(collect($data->items())->sum('total_amount') ?? 0, 2) }} ر.س
الأوامر المعلقة
{{ collect($data->items())->whereIn('status', ['draft', 'approved'])->count() ?? 0 }}
الأوامر الملغاة
{{ collect($data->items())->where('status', 'cancelled')->count() ?? 0 }}
| # | رقم الأمر | المورد | التاريخ | المبلغ | الحالة | الإجراءات |
|---|---|---|---|---|---|---|
| {{ $loop->iteration + ($data->currentPage() - 1) * $data->perPage() }} |
{{ $po->po_number }}
{{ $po->id }}
|
@if($po->supplier)
{{ $po->supplier->name }}
{{ $po->supplier->city ?? 'N/A' }}
@else
غير محدد
@endif
|
{{ \Carbon\Carbon::parse($po->po_date)->format('d/m/Y') }}
{{ \Carbon\Carbon::parse($po->po_date)->format('H:i') }}
|
{{ number_format($po->total_amount, 2) }} ر.س
|
@switch($po->status) @case('draft') مسودة @break @case('approved') موافق عليها @break @case('sent') مرسلة @break @case('received') مستلمة @break @case('partially_received') مستلمة جزئياً @break @case('cancelled') ملغاة @break @default {{ ucfirst($po->status) }} @endswitch | |
|
لا توجد أوامر شراء حالياً ابدأ بإنشاء أمر شراء جديد |
||||||