@extends('layouts.app') @section('title', 'Etsy shop') @section('content')
Sales
Paid orders awaiting dispatch and listings by state.
Awaiting dispatch
{{ count($receipts) }}
{{ ucfirst($state === 'active' ? 'Live' : 'Draft') }} listings total
{{ $listingCount }}
| Receipt | Buyer | Placed | Total |
|---|---|---|---|
| #{{ $receipt['receipt_id'] ?? 'โ' }} | {{ $receipt['name'] ?? $receipt['buyer_email'] ?? 'Buyer' }} | {{ isset($receipt['create_timestamp']) ? \Illuminate\Support\Carbon::createFromTimestamp($receipt['create_timestamp'])->format('d M Y') : 'โ' }} | {{ isset($receipt['grandtotal']['amount']) ? ($receipt['grandtotal']['currency_code'] ?? 'GBP').' '.number_format((float) $receipt['grandtotal']['amount'] / max(1, (int) ($receipt['grandtotal']['divisor'] ?? 100)), 2) : 'โ' }} |
| No paid orders awaiting dispatch. | |||
Showing {{ count($listings) }} of {{ $listingCount }} {{ $state === 'active' ? 'live' : 'draft' }} listings.{{ $snapshotAge ? ' Snapshot '.$snapshotAge.($snapshotStale ? ' ยท cached after a failed refresh, not asserted live' : '').'.' : '' }}
No {{ $state === 'active' ? 'live' : 'draft' }} listings returned.
@endforelse