@extends('layouts.app') @section('content')

تعديل الطلب #{{ $order->id }}

العودة للطلب
@csrf @method('PUT')
المنتجات
@foreach($products->groupBy('category.name') as $category => $categoryProducts)
@foreach($categoryProducts as $product)
@if($product->image) {{ $product->name }} @else
@endif
{{ $product->name }}

{{ number_format($product->price, 2) }}

@endforeach
@endforeach
تفاصيل الطلب
@error('table_id')
{{ $message }}
@enderror
@error('customer_name')
{{ $message }}
@enderror
@error('notes')
{{ $message }}
@enderror
المنتجات المختارة
@foreach($order->items as $item)
{{ $item->product->name }}
{{ number_format($item->unit_price, 2) }}
@endforeach
ملخص الطلب
المجموع: {{ number_format($order->total_amount, 2) }}
الخصم:
الضريبة:

الإجمالي: {{ number_format($order->final_amount, 2) }}
@endsection @push('scripts') @endpush