@extends('layouts.app') @section('title', 'Overview') @section('content')
Workshop overview
What needs attention across the shop and workshop.
Updated when you open this page
Awaiting dispatch
↗{{ $etsyConnected ? $awaitingDispatch : '—' }}
{{ $etsyStatus }} · Latest 20 Etsy receipts
@endifPrinting now
↗{{ $printerStatus === 'Live from BamBuddy' ? $printingCount : '—' }}/ {{ $printerStatus === 'Live from BamBuddy' ? count($printers) : '—' }}
{{ $printerStatus }}
Tracked materials
↗{{ $filamentCount }}
{{ count($materials) }} material types in your tracker
@if($isAdmin)Active listings
↗{{ $listingCount ?? '—' }}
{{ $etsyStatus }}
@elseFilament dryer
↗{{ $dryerState }}
Current workshop state
@endifPlaced in the last 14 days among the latest 20 unshipped Etsy receipts
No recent dispatch orders to chart
{{ $etsyStatus === 'Not connected' ? 'Connect Etsy to see the current dispatch queue.' : ($etsyStatus === 'Temporarily unavailable' ? 'Etsy data is temporarily unavailable.' : 'Paid orders awaiting dispatch will appear here.') }}
Tracked filaments by material
No materials tracked yet
Open filament tracker →Print farm: {{ $printerStatus }}
Dryer: {{ $dryerState }}
{{ $printerStatus }}
{{ $printer['name'] ?? 'Printer' }}
{{ $live['current_print'] ?? $live['subtask_name'] ?? 'No active job' }}
in_array(strtoupper((string) ($live['state'] ?? '')), ['RUNNING', 'PRINTING']), 'text-slate-400' => ! in_array(strtoupper((string) ($live['state'] ?? '')), ['RUNNING', 'PRINTING'])])>{{ $live['state'] ?? $printer['status'] ?? 'Unavailable' }}
{{ isset($live['progress']) ? number_format((float) $live['progress'], 0).'%' : '—' }}
{{ $printerStatus === 'Live from BamBuddy' ? 'No printers returned by BamBuddy.' : $printerStatus }}
@endforelseLatest paid Etsy receipts awaiting dispatch
#{{ $receipt['receipt_id'] ?? '—' }} · {{ $receipt['name'] ?? 'Buyer' }}
{{ isset($receipt['create_timestamp']) ? \Illuminate\Support\Carbon::createFromTimestamp((int) $receipt['create_timestamp'])->format('d M Y') : 'Date unavailable' }}
{{ $etsyStatus === 'Not connected' ? 'Connect Etsy to see orders.' : ($etsyStatus === 'Temporarily unavailable' ? 'Etsy data is temporarily unavailable.' : 'No orders awaiting dispatch.') }}
@endforelseParcel2Go · {{ $shippingStatus }}
#{{ $shipment['OrderLineId'] ?? '—' }} · {{ $shipment['Courier'] ?? 'Courier' }}
{{ $shipment['DeliveryAddress']['ContactName'] ?? 'Recipient unavailable' }}
{{ $shippingStatus === 'Live account' ? 'No recent shipments.' : $shippingStatus }}
@endforelseMost recently tracked materials
{{ $filament->filamentName }}
{{ $filament->brand ?: 'Unknown brand' }} · {{ $filament->material ?: 'Material pending' }}
No filament is being tracked yet.
@endforelse{{ $dryerState }}