@extends('layouts.layout') @section('content')
Impact Donations
View orders and donation amounts by impact
@forelse($summary as $impact)
{{ $impact['label'] }}
${{ number_format($impact['impact_amount'], 2) }}
1% Donation
Orders {{ number_format($impact['order_count']) }}
Order Value ${{ number_format($impact['total_order_value'], 2) }}
@empty
No Impact Orders Found

No {{ $environment }} orders with an impact selection were found for the selected period.

@endforelse
Impact Orders
{{ $periods[$period]['label'] }} ยท {{ ucfirst($environment) }}
Showing {{ $orders->firstItem() ?? 0 }} - {{ $orders->lastItem() ?? 0 }} of {{ number_format($orders->total()) }} orders
@forelse($orders as $order) @empty @endforelse
# Order ID Impact Final Order Value 1% Donation Order Date Status
{{ $loop->iteration + (($orders->currentPage() - 1) * $orders->perPage()) }} {{ $order->order_id }} {{ ucwords(str_replace('_', ' ', $order->choose_your_impact)) }} ${{ number_format((float) $order->final_amount, 2) }} ${{ number_format((float) $order->final_amount * 0.01, 2) }} {{ $order->created_at?->format('M d, Y') }} @if($order->status) {{ $order->status }} @else N/A @endif
No Orders Found

No orders match the selected filters.

@if($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection