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

Invoice #{{$order->order_number}}

  • Created At: {{ $order->created_at->format('d/m/Y') }}
Invoice To

{{ $order->customer_fname.' '.$order->customer_lname}}

  • {{ $order->customer_address}}
  • +012 8764 556

Invoice

  • Invoice ID:{{$order->order_number}}
  • Date:{{ $order->created_at->format('d/m/Y') }}
@php $total = 0; $subtotal = 0; foreach ($orderItems as $key => $value) { $total+= $value->price * $value->qty; $subtotal+= $value->price; } @endphp @foreach ($orderItems as $key => $item) @endforeach
Item ID Item Name Image Price Qty Amount
{{$value->id}} {{$item->name}} ${{$item->price}} {{$item->qty}} ${{$item->price}}
Subtotal ${{$subtotal}}
Grand Total ${{$total}}
Invoice was created on a computer and is valid without the signature and seal.
@endsection