@extends('layouts.app') @section('title', 'مرتجع فاتورة بيع') @section('page_heading', 'مرتجع فاتورة بيع #' . $sale->id) @section('content')
الفاتورة #{{ $sale->id }}
@include('layouts.partials.workspace-page-styles')

إرجاع من فاتورة البيع #{{ $sale->id }}

حدد نوع المرتجع والكميات المستردة.

@csrf
@foreach($sale->saleProducts as $index => $saleProduct) @endforeach
المنتج المباع تم إرجاعه المتاح كمية الإرجاع استرداد الوحدة
{{ $saleProduct->product->name }}
{{ $saleProduct->product->sku }}
{{ $saleProduct->quantity }} {{ $saleProduct->returned_quantity }} {{ $saleProduct->returnable_quantity }} returnable_quantity === 0 ? 'disabled' : '' }}> returnable_quantity === 0 ? 'disabled' : '' }}>
رجوع

ملخص الفاتورة

العميل{{ $sale->customer?->name ?: '—' }}
إجمالي الفاتورة{{ number_format($sale->final_total, 2) }}
المرتجع السابق{{ number_format($sale->refunded_amount, 2) }}
الصافي الحالي{{ number_format($sale->net_total, 2) }}
@endsection @section('scripts') @endsection