@extends('layouts.public') @section('title', 'Invoice | Anywhere Phone Repair') @section('content')

Invoice

#INV-{{ $order->id }}-{{ \Carbon\Carbon::parse($order->created_at)->format('Y') }}

Anywhere Phone Repair

{{ $store->name ?? 'Headquarters' }}

@if($store && $store->address)

{{ $store->address }}

@endif

Billed To

{{ $customerName ?? 'Customer' }}

@if($customerEmail)

{{ $customerEmail }}

@endif @if($customerPhone)

{{ $customerPhone }}

@endif

Invoice Details

Date: {{ \Carbon\Carbon::parse($order->created_at)->format('M d, Y') }}

Order Ref: {{ substr($order->tracking_code, 0, 8) }}

@php $subtotal = 0; @endphp @if(isset($items) && count($items) > 0) @foreach($items as $item) @php $subtotal += $item->price; @endphp @endforeach @else @endif
Description Price
{{ $item->service_name }} ${{ number_format($item->price, 2) }}
Repair Service - {{ $order->device_description }} --
Subtotal ${{ number_format($subtotal, 2) }}
Total ${{ number_format($subtotal, 2) }}
@endsection