@extends('layouts.homeapp') @section('content') {{--- ORDER EDIT ----}}
@foreach ($Products as $Product)
@if(isset($Product->image)) avatar @else avatar @endif
{{ $Product->title}}
@endforeach

My Orders

Order Number: {{$Order->id}}
Status: {{$Order->status->title}}
Duration: {{$Order->duration->title}}
@foreach($Order->order_products as $order_product) @php $Amount*=$order_product->quantity; @endphp @endforeach
Product Services Quantity Amount Action
{{$order_product->product->title}} @php $Amount=0; @endphp @foreach($order_product->order_product_services as $order_product_services) {{$order_product_services->product_service->servicetype->title}} @php $Amount+=$order_product_services->product_service->serviceprice; @endphp @endforeach {{$order_product->quantity}}{{$Amount}}
@csrf @method('delete')
@endsection