@include('Admin.Includes.header') @php use App\Models\GeneralSettings; $settings = GeneralSettings::whereIn('option', ['_gst_percentage']) ->pluck('value', 'option'); $gst_percentage = $settings['_gst_percentage']; @endphp

Update Order #{{ $order->id }}

@csrf @php $totalGst = 0; $deliveryCharges = 0; @endphp @foreach($order->orderMeta as $meta) @php $totalGst += $meta->totalGst ?? 0; $deliveryCharges += $meta->delivery_charges ?? 0; $gstMeta = $meta->product->productMeta->firstWhere('option', '_gst'); $gstValue = $gstMeta ? $gstMeta->value : 0; @endphp @endforeach
Product Name Original Values Updated Values
Weight (kg) Price ($) Weight (kg) Price ($) GST ($)
{{ $meta->product_title }}
Subtotal:
Total GST ({{ $gst_percentage }}%):
Delivery Charges:
Grand Total:
@include('Admin.Includes.footer')