@extends('admin.layouts.master') @section('title', 'تفاصيل عرض السعر') @section('content')

عرض السعر: {{ $quotation->quotation_number }}

@can('quotations.update') @if($quotation->can_edit) تعديل @endif @endcan طباعة PDF رجوع
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
رقم العرض: {{ $quotation->quotation_number }}
الحالة: {!! $quotation->status_badge !!}
التاريخ: {{ $quotation->quotation_date?->format('Y-m-d') }}
الصلاحية: {{ $quotation->valid_until_date?->format('Y-m-d') ?? '-' }}
العميل: {{ $quotation->customer?->name_ar }}
المخزن: {{ $quotation->warehouse?->name_ar ?? '-' }}
نوع السعر: {{ \App\Models\Quotation::PRICE_TYPES[$quotation->price_type] ?? $quotation->price_type }}
أنشئ بواسطة: {{ $quotation->creator?->name ?? '-' }}
اعتمد بواسطة: {{ $quotation->approver?->name ?? '-' }}
تاريخ الإنشاء: {{ $quotation->created_at?->format('Y-m-d H:i') }}
@if($quotation->notes_ar)
ملاحظات: {{ $quotation->notes_ar }}
@endif
البنود
@forelse($quotation->items as $item) @empty @endforelse
# النوع الوصف الصنف / الخدمة الوحدة الكمية سعر الوحدة خصم الإجمالي
{{ $loop->iteration }} {{ $item->line_type === 'service' ? 'خدمة' : 'صنف' }} {{ $item->description_ar }} @if($item->line_type === 'service') {{ $item->serviceType?->name_ar ?? '-' }} @else {{ $item->product?->name_ar ?? '-' }} @endif {{ $item->unit?->name_ar ?? '-' }} {{ number_format((float) $item->quantity, 2) }} {{ number_format((float) $item->unit_price, 2) }} {{ number_format((float) $item->discount_amount, 2) }} {{ number_format((float) $item->line_total, 2) }}
لا توجد بنود في عرض السعر
الإجمالي قبل الخصم {{ number_format((float) $quotation->subtotal_before_discount, 2) }}
الخصم ({{ $quotation->discount_type === 'percentage' ? '%' : 'مبلغ' }}) {{ number_format((float) $quotation->discount_amount, 2) }}
الضريبة ({{ number_format((float) $quotation->tax_percentage, 2) }}%) {{ number_format((float) $quotation->tax_amount, 2) }}
الإجمالي النهائي {{ number_format((float) $quotation->grand_total, 2) }}
@can('quotations.update') @if($quotation->can_approve)
@csrf
@endif @endcan @can('quotations.create') @if($quotation->can_convert)
@csrf
@endif @endcan @can('quotations.update') @if($quotation->can_cancel)
@csrf
@endif @endcan
@endsection