@extends('layouts.app') @section('title', 'Accountant Report – Setting') @section('content')

← Setting

Accountant Report

Email and automatic monthly delivery for the Accountant Report menu. Manual and automatic emails always include only no-tax outside Florida and always exclude test orders and Florida no-tax billing errors ({{ \App\Services\AccountantReportService::TEST_CUSTOMER_EMAIL }} / {{ \App\Services\AccountantReportService::TEST_CUSTOMER_PHONE_DIGITS }}).

@csrf

Delivery

@error('accountant_email') {{ $message }} @enderror Default: colonia7421@gmail.com. Used for manual send and automatic monthly email (PDF + CSV).
Off by default. When on, Tools emails the previous month’s no-tax outside FL package on the 10th (America/New_York) after syncing Shopify + NMI: PDF (summary + invoices/receipts) and CSV (sales table only), excluding test orders and Florida no-tax errors. If the send fails, Tools retries on later days and notifies the store From address (MAIL_FROM_ADDRESS). When off, use “Email to accountant” manually — same PDF + CSV rules.
@if($settings->hasLastSentReport())
Last email: {{ $settings->lastSentAtDisplay() }} ({{ $settings->lastSentModeLabel() }} · {{ $settings->last_sent_month_label }}) @if($settings->hasLastSentPdfFile()) · View last PDF @endif @if($settings->hasLastSentCsvFile()) · Download last CSV @endif
@elseif($settings->last_auto_sent_month)
Last automatic send: {{ $settings->last_auto_sent_month }}
@endif
Monthly archives are kept as accountant/reports/YYYY-MM.pdf and .csv. Delivery/open status appears on the Accountant menu when Brevo webhooks are configured (POST /webhooks/brevo, optional BREVO_WEBHOOK_SECRET).

Sync history (manual)

Pulls Shopify + NMI into Accountant for the current calendar year: {{ $backfillFrom }} through {{ $backfillTo }} ({{ $backfillLabel }}). Safe to run again — it updates existing rows and does not duplicate. New sales also sync automatically every hour in the background.

@if(!empty($lastBackfill['at']))

Last manual backfill: {{ \Carbon\Carbon::parse($lastBackfill['at'])->timezone(config('app.deals_display_timezone', 'America/New_York'))->format('M j, Y g:i A T') }} · Shopify {{ $lastBackfill['shopify_synced'] ?? 0 }} · NMI {{ $lastBackfill['nmi_synced'] ?? 0 }}

@endif
@csrf
@endsection @push('styles') @endpush