Orders
@extends('tickets.layouts.admin_layout') @section('title', 'Orders - Loyaltiya Tickets') @section('content')
Orders
Revenue
Tickets Sold
No orders found for this range.
@else| Order # | Event | Customer | Qty | Total | Coupon | Status | Date | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $order->id }} | {{ $order->event->name }} | {{ $order->customer->name }} | {{ $order->quantity }} | {{ $order->currency }} {{ number_format($order->total_amount, 2) }} | @if ($order->coupon) {{ $order->coupon->code }} @else — @endif | {{ ucfirst($order->status) }} | {{ $order->created_at->format('M d, Y h:i A') }} | |||||||||
|
{{-- Customer details --}}
{{-- Tickets / check-in status --}}
@if ($order->tickets->isNotEmpty())
CustomerName: {{ $order->customer->name }} Email: {{ $order->customer->email }} @if ($order->customer->phone)Phone: {{ $order->customer->phone }} @endifType: {{ $order->customer->is_guest ? 'Guest checkout' : 'Registered account' }} OrderUnit Price: {{ $order->currency }} {{ number_format($order->unit_price, 2) }} Quantity: {{ $order->quantity }} @if ($order->discount_amount > 0)Discount: -{{ $order->currency }} {{ number_format($order->discount_amount, 2) }} @endifTotal Paid: {{ $order->currency }} {{ number_format($order->total_amount, 2) }} Paid At: {{ $order->paid_at ? $order->paid_at->format('M d, Y h:i A') : 'Not paid yet' }} Coupon@if ($order->coupon)Code: {{ $order->coupon->code }} Type: {{ $order->coupon->type === 'percentage' ? $order->coupon->value . '% off' : $order->currency . ' ' . number_format($order->coupon->value, 2) . ' off' }} Amount Saved: {{ $order->currency }} {{ number_format($order->discount_amount, 2) }} @elseNo coupon applied. @endifTickets
|
||||||||||||||||