@extends('layouts.app') @push('styles') @endpush @section('title', 'WHMCS Admin - Customers') @section('page-title', 'Customer Management') @section('breadcrumb') Dashboard Order Management/Invoice @endsection @section('content')
Print Invoice Download PDF Email Invoice Edit Invoice
ORDER INVOICE
Order #: {{ $order->order_number ?? 'N/A' }}
Order Date: {{ $order->created_at->format('F d, Y') ?? '-' }}
Due Date: {{ $order->due_date ? $order->due_date->format('F d, Y') : '-' }}
@php $statusClass = match ($order->status) { 'pending' => 'status-unpaid', 'active' => 'status-paid', 'completed' => 'status-paid', 'cancelled' => 'status-overdue', default => 'status-unpaid', }; @endphp {{ strtoupper($order->status ?? 'UNPAID') }}
Bill To
{{ $order->customer->full_name ?? 'N/A' }}
{{ $order->customer->company_name ?? '' }}
{{ $order->customer->address ?? '' }}
{{ $order->customer->city ?? '' }}, {{ $order->customer->state ?? '' }} {{ $order->customer->zip ?? '' }}
{{ $order->customer->country ?? '' }}
Phone: {{ $order->customer->phone ?? '-' }}
Email: {{ $order->customer->email ?? '-' }}
Customer ID: {{ $order->customer->customer_id ?? '-' }}
Payment Method
{{ ucfirst(str_replace('_', ' ', $order->payment_method ?? '-')) }}
{{-- @foreach ($order->items as $item) --}} {{-- @endforeach --}}
Description Quantity Unit Price Total
{{ $order->product->name ?? 'N/A' }}
Billing Cycle: {{ ucfirst($order->billing_cycle) }}
Period: {{-- {{ $order->start_date->format('M d, Y') ?? '-' }} - {{ $order->end_date->format('M d, Y') ?? '-' }} --}}
{{ $order->quantity }} ${{ number_format($order->unit_price, 2) }} ${{ number_format($order->total_price, 2) }}
Payment Information
Accepted Methods:


Bank Transfer:
Account: 1234567890
Routing: 987654321
SWIFT: WHMCUS33
Subtotal: ${{ number_format($order->subtotal, 2) }}
Discount ({{ $order->discount_percent ?? 0 }}%): -${{ number_format($order->discount_amount, 2) }}
Tax ({{ $order->tax_percent ?? 0 }}%): ${{ number_format($order->tax_amount, 2) }}
Setup Fee: ${{ number_format($order->setup_fee ?? 0, 2) }}
Total Amount: ${{ number_format($order->total_amount, 2) }}
Notes & Terms

{!! nl2br(e($order->notes ?? 'No additional notes.')) !!}

@endsection