@extends('layouts.app') @section('title', 'Etsy shop') @section('content')

Sales

{{ $connection?->shop_name ?? 'Connect your Etsy shop' }}

Paid orders awaiting dispatch and active listings.

@csrf
@if(! $configured)@endif @if($integrationError)@endif @if($connection)

Awaiting dispatch

{{ count($receipts) }}

Active listings shown

{{ count($listings) }}

Orders to dispatch

@forelse($receipts as $receipt)@empty@endforelse
ReceiptBuyerPlacedTotal
#{{ $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.

Active listings

@forelse($listings as $listing)
{{ $listing['title'] ?? 'Untitled listing' }}{{ $listing['quantity'] ?? 0 }} available
@empty

No listings returned.

@endforelse
@endif @endsection