Stars Education & Training

Invoice #{{ $order->order_number }}

Order Number: {{ $order->order_number }}
Invoice Date: {{ $order->created_at->format('d/m/Y H:i') }}
Payment Status: Paid

Customer Details

Name: {{ $order->customer_name }}
Email: {{ $order->customer_email }}
Phone: {{ $order->customer_phone }}
Address: {{ $order->customer_address }}, {{ $order->city }}, {{ $order->postcode }}

Order Items

@php $courseNames = is_array($order->course_names) ? $order->course_names : json_decode($order->course_names, true); $courseIds = is_array($order->course_ids) ? $order->course_ids : json_decode($order->course_ids, true); $isPackage = false; @endphp @if(is_array($courseNames)) @foreach($courseNames as $index => $name) @php $isPackage = stripos($name, 'PLATINUM') !== false || stripos($name, 'GOLD') !== false || stripos($name, 'SILVER') !== false; @endphp @endforeach @else @endif
Item Type Qty Price
{{ $name }} {{ $isPackage ? 'PACKAGE' : 'COURSE' }} 1 £{{ number_format($order->total_amount / count($courseNames), 2) }}
{{ $order->course_names ?? 'Course' }} COURSE 1 £{{ number_format($order->total_amount, 2) }}
Subtotal £{{ number_format($order->total_amount + $order->discount_amount, 2) }}
@if($order->discount_amount > 0)
Discount -£{{ number_format($order->discount_amount, 2) }}
@endif
Total £{{ number_format($order->total_amount, 2) }}

Payment confirmed via {{ ucfirst($order->payment_method) }}

Thank you for choosing Stars Education & Training!