@extends('backend.template.layouts.template-base') @section('title', 'Reports - Sales Report') @php $phoneSvg = ''; @endphp @section('content')

Sales Report

Download XLSX
Show entries
@forelse($orders as $order) @php $statusClass = match(true) { in_array($order->status, ['delivered', 'completed']) => 'status-active', in_array($order->status, ['cancelled', 'failed', 'rejected']) => 'status-inactive', default => 'status-pending', }; @endphp @empty @endforelse
Order ID Customer Details Order From Payment Mode Total Order Value Order Status Order Placed On
{{ $order->order_no }}
{{ $order->customer?->name ?? '—' }} {!! $phoneSvg !!} {{ $order->customer?->mobile ?? '—' }}
{{ ucfirst($order->customer?->source ?? 'App') }} {{ ucfirst(str_replace('_', ' ', $order->payment_method ?? '—')) }} ₹{{ number_format((float)$order->grand_total, 2) }} {{ ucwords(str_replace('_', ' ', $order->status ?? '—')) }} {{ $order->placed_at?->format('d/m/Y - h:i A') ?? '—' }}
No sales records found.

Showing {{ $orders->firstItem() ?? 0 }}–{{ $orders->lastItem() ?? 0 }} of {{ $orders->total() }} results

{{ $orders->links() }}
@endsection @section('scripts') @endsection