@extends('layouts.portal') @section('title', __('Transaction reset')) @push('styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('SETTINGS') }}

{{ __('Transaction reset') }}

{{ __('System administrators only. This operation cannot be undone from this screen.') }}

{{ __('Company settings') }}
@if(session('status'))

{{ session('status') }}

@endif @if($errors->any()) @endif

{{ __('Always cleared') }}

{{ __('All invoices and other sales/purchase documents, payments, payrolls, settlement batches, journal entries and applications, stock movements, transfers, counts, lots and serial numbers are removed, including posted and voided records.') }}

{{ __('Accounting balances and stock quantities return to zero. Transaction IDs and document numbering restart from one. Old activity logs are cleared and replaced by one reset record.') }}

{{ __('Always preserved') }}

{{ __('Chart of accounts, account associations and defaults, balance-account settings, company settings, login accounts and their linked people, warehouses, locations, units, brands, categories, projects, cost centers, payment terms and sales/purchase concepts remain.') }}

{{ __('All optional catalogs are kept unless explicitly selected below. Preserved fiscal periods keep their current open/closed status.') }}

@csrf

{{ __('Also clear these optional catalogs') }}

@foreach($options as $key => $label) @endforeach

{{ __('Clearing people removes only people without login accounts and their customer/supplier/employee roles and contacts. Their project-customer and warehouse-responsible links are cleared; the projects and warehouses remain.') }}

{{ __('Clearing items also removes item components. Clearing payroll concepts removes employee concept defaults. Cleared payment methods and concepts are not automatically recreated.') }}

@if($preview !== null)

{{ __('Review records to remove') }}

{{ __('Nothing has been deleted. This preview expires in 10 minutes and can be used only once. Changing the options requires a new preview.') }}

    @foreach($options as $key => $label)
  • {{ __($label) }}: {{ __($preview['options'][$key] ? 'Clear' : 'Keep') }}
  • @endforeach
@foreach($preview['counts'] as $table => $count) @endforeach
{{ __('Table') }}{{ __('Records to remove') }}
{{ $table }}{{ number_format($count) }}
@csrf

{{ __('Confirm permanent reset') }}

{{ __('Take and verify an external database backup first. Stop all other users, scheduled tasks, integrations and queue workers, and close other editing tabs. Everyone must reload after the reset. This screen does not create a backup.') }}

{{ __('Type RESET ALL TRANSACTIONS exactly, in uppercase, to confirm the reset.') }}
@endif
@endsection