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

Order #{{ $order->id }}

Customer: {{ $order->customer_name }}
Email: {{ $order->customer_email }}
Address: {{ $order->customer_address }}
Status: {{ ucfirst($order->status) }}
@foreach(json_decode($order->items, true) as $item) @endforeach
Product Price Qty Subtotal
{{ $item['name'] }} ${{ $item['price'] }} {{ $item['qty'] }} ${{ $item['price'] * $item['qty'] }}
Total ${{ $order->total }}
Print Invoice @endsection