@extends('layouts.app') @section('content')

System MyTax/eInvoicing Settings

@if(session('success')) @endif
About System MyTax Integration

Configure your platform's MyTax/eInvoicing API credentials here. These credentials will be used for all companies on your platform. Individual companies only need to provide their TIN (Tax Identification Number).

@csrf @method('PUT')
API Credentials (ERP Representative)
Your MyTax/eInvoicing Client ID from LHDN portal
@error('client_id')
{{ $message }}
@enderror
client_secret_1 ? 'required' : '' }}>
First client secret from LHDN portal (encrypted storage)
@error('client_secret_1')
{{ $message }}
@enderror
client_secret_2 ? 'required' : '' }}>
Second client secret from LHDN portal (encrypted storage)
@error('client_secret_2')
{{ $message }}
@enderror
Only if you're an intermediary submitting on behalf of taxpayers
@error('on_behalf_of')
{{ $message }}
@enderror
Use sandbox for testing before going live
@error('sandbox_mode')
{{ $message }}
@enderror
Upload .p12 or .pem certificate file if required
Passphrase for the certificate (if required)
is_active) ? 'checked' : '' }}>
Enable this to allow companies to use MyTax/eInvoicing
@if($settings->last_connection_test)
Last connection test: {{ $settings->last_connection_test->diffForHumans() }}
@endif
Default Settings
Default prefix for invoice numbers
@error('invoice_prefix')
{{ $message }}
@enderror
Default SST/GST rate
@error('default_tax_rate')
{{ $message }}
@enderror
auto_submit) ? 'checked' : '' }}>
If disabled, invoices will be saved as drafts
Module Integration

Select which modules can submit invoices to MyTax:

enabled_modules['ecommerce'] ?? false) ? 'checked' : '' }}>
enabled_modules['booking'] ?? false) ? 'checked' : '' }}>
enabled_modules['payment_forms'] ?? false) ? 'checked' : '' }}>
enabled_modules['hr_payroll'] ?? false) ? 'checked' : '' }}>
@endsection @push('scripts') @endpush