@extends('layouts.front-layout') @section('title') Guest Order @endsection @section('content')

Guest Order

Guest Orders

@php $sub_total = 0; @endphp @foreach($order->orderItems as $order) @php $sub_total += $order->price * $order->quantity; @endphp @endforeach
SL Product Name PRICE QTY TOTAL
{{$order->id ?? ''}} {{$order->products->product_name ?? ''}} $ {{$order->price ?? ''}} {{$order->quantity ?? ''}} $ {{$order->price * $order->quantity }}

  • SUB TOTAL: $ {{number_format($sub_total ? : '')}}

  • TOTAL: $ {{number_format($sub_total ? : '')}}
@endsection