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