@extends('admin.layout.main') @section('main-container')

{{ $PageHeading }}

{{ $PageHeading }}

{{ $order->order_status }}
{{-- {{ json_decode($order->city_name)->en }} --}}
{{-- --}}
@php $grandTotal = 0; @endphp @foreach ($order->orderDetails as $index => $detail) @php $totalPrice = $detail->qty * $detail->price; $grandTotal += $totalPrice; @endphp @endforeach
Sr. Service Name Service Price Quantity Total
{{ $index + 1 }} {{ $detail->product ? $detail->product->title : 'Product Name Not Found' }} {{ number_format($detail->price,2) }} {{ $detail->qty }} {{ number_format($detail->total_price,2) }}
Grand Total {{ number_format($grandTotal,2) }}
@endsection