@extends('layouts.homeapp')
@section('content')
{{--- ORDER EDIT ----}}
@else
@endif
{{ $Product->title}}
My Orders
Order Number: {{$Order->id}}
Status: {{$Order->status->title}}
Duration: {{$Order->duration->title}}
Product
Services
Quantity
Amount
Action
@foreach($Order->order_products as $order_product)
@endforeach
{{$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}}
@php $Amount*=$order_product->quantity; @endphp
{{$Amount}}