@extends('layouts.app') @section('title', $order->order_number) @section('page-title', 'Order ' . $order->order_number) @section('breadcrumb', 'Orders / Details') @section('content')
{{ ucfirst($order->payment_status) }}

{{ $order->created_at->format('M d, Y h:i A') }}

Download Invoice @if($order->payment_status === 'paid')
@csrf
@endif

Order Items

@foreach($order->items as $item) @endforeach
CoursePriceDiscountTotal
{{ $item->course?->title }} ₹{{ number_format($item->price, 2) }} ₹{{ number_format($item->discount, 2) }} ₹{{ number_format($item->total, 2) }}
Subtotal
₹{{ number_format($order->subtotal, 2) }}
Discount
-₹{{ number_format($order->discount, 2) }}
Tax (18%)
₹{{ number_format($order->tax, 2) }}
Total
₹{{ number_format($order->total, 2) }}

Customer

{{ $order->user?->name }}

{{ $order->user?->email }}

{{ $order->user?->phone }}

Payment Info

Method
{{ $order->payment_method }}
@if($order->coupon)
Coupon
{{ $order->coupon->code }}
@endif @if($order->paid_at)
Paid At
{{ $order->paid_at->format('M d, Y h:i A') }}
@endif
@if($order->notes)

{{ $order->notes }}

@endif
@if($order->payments->count())

Payments

@foreach($order->payments as $payment) @endforeach
GatewayAmountStatusDate
{{ $payment->gateway }} ₹{{ number_format($payment->amount, 2) }} {{ ucfirst($payment->status) }} {{ $payment->paid_at?->format('M d, Y') ?? $payment->created_at->format('M d, Y') }} View
@endif
@endsection