@extends('layouts.app') @php use App\Models\Quotation; @endphp @section('title', 'عروض الأسعار - '.config('app.name')) @section('breadcrumb') الرئيسية المبيعات عروض الأسعار @endsection @section('content') @php $indexFilterCustomerOptions = collect($customers ?? [])->map(fn ($c) => [ 'value' => $c->id, 'label' => (string) ($c->display_name ?? $c->name ?? ''), ])->values()->all(); @endphp
@if (session('import_result')) @endif

عروض الأسعار

إجمالي عروض الأسعار

{{ number_format($totalCount) }}

مسودات

{{ number_format($pendingCount) }}

عروض معتمدة (قيمة)

SAR {{ number_format($acceptedAmount, 2) }}

معدل التحويل

{{ number_format($conversionRate, 1) }}%

الإجمالي {{ $quotations->total() }} مسح
@forelse($quotations as $q) @empty @endforelse
رقم العرض العميل تاريخ العرض صالح حتى الإجمالي الحالة الإجراءات
{{ $q->quotation_number ?? ('QT-'.str_pad((string) $q->id, 3, '0', STR_PAD_LEFT)) }} {{ $q->customer?->display_name ?? '—' }} {{ $q->date?->format('Y-m-d') ?? '—' }} {{ $q->valid_until?->format('Y-m-d') ?? '—' }} SAR {{ number_format((float) $q->total_amount, 2) }} @if($q->status === Quotation::STATUS_DRAFT) مسودة @elseif($q->status === Quotation::STATUS_APPROVED) معتمد @elseif($q->status === Quotation::STATUS_REJECTED) مرفوض @elseif($q->status === Quotation::STATUS_CONVERTED_TO_ORDER) محوّل @else {{ $q->status }} @endif
لا توجد عروض أسعار
@if($quotations->hasPages())
{{ $quotations->links() }}
@endif
@endsection @push('scripts') @endpush