@extends('layouts.app') @section('title', 'My Downloads') @section('content')
{{-- Page Header --}}

My Digital Downloads

Access your purchased digital products and licenses

{{-- Stats Grid --}} @include('account.downloads.partials.stats-grid', ['stats' => $stats]) {{-- Totals by Currency --}} @if($totalsByCurrency->count() > 0)
Spending by Currency
@foreach($totalsByCurrency as $row)
{{ $row->currency }} {{ number_format($row->purchases_count) }} {{ Str::plural('purchase', $row->purchases_count) }}

{{ number_format((float) $row->total_spent, 2) }}

@endforeach
@endif {{-- Filters --}}
{{-- Search --}}
{{-- Currency --}}
{{-- Sort --}}
{{-- Date From --}}
{{-- Date To --}}
{{-- Per Page --}}
{{-- Reset --}}
Reset
{{ $sales->total() }} purchases found @if($sales->total() > 0) ({{ $sales->firstItem() }} - {{ $sales->lastItem() }}) @endif
{{-- Purchases List --}} @if($sales->count() > 0)
@foreach($sales as $sale)
@include('account.downloads.partials.purchase-card', ['sale' => $sale])
@endforeach
{{-- Pagination --}} @if($sales->hasPages())
Showing {{ $sales->firstItem() ?? 0 }} to {{ $sales->lastItem() ?? 0 }} of {{ $sales->total() }} purchases
{{ $sales->appends(request()->except('page'))->links() }}
@endif @else
No digital purchases yet

Browse our collection of digital products — software, templates, eBooks, and more.

Browse Digital Products
@endif
{{-- Hidden Forms for Downloads --}} @endsection @push('styles') @endpush @push('scripts') @endpush