@extends('layouts.market') @section('content')

{{ $title }}

@foreach($orders as $order)
ID: {{ $order->id }}

Date: {{ $order->created_at }}

Customer Name: {{ $order->name.' - '.$order->phone_number.' - '.$order->district }}

{{$order->order_status}}

@php $admin_message = null @endphp @foreach ($order->orderDetails as $detail) @php $admin_message .= $detail->product->name." ".$detail->quantity." ".$detail->product->unit.$detail->product->unit_of_measure." at ".$detail->unit_price." UGX,
"; @endphp @endforeach

{!! $admin_message !!}

Total: {{ number_format($order->total()) }} UGX

@endforeach @endsection