@php $cronJobs = [ [ 'label' => 'SYNC ACCOUNTS', 'type' => 'sync_accounts', 'cmd' => 'sync:invoice-accounts', 'last_sync' => $sync_accounts_last_sync_datetime ?? null, ], [ 'label' => 'SYNC TAX RATES', 'type' => 'sync_tax_rates', 'cmd' => 'sync:invoice-tax-rates', 'last_sync' => $sync_tax_rates_last_sync_datetime ?? null, ], [ 'label' => 'SYNC PAYRATES', 'type' => 'sync_payrates', 'cmd' => 'sync:invoice-payrates', 'last_sync' => $sync_payrates_last_sync_datetime ?? null, ], [ 'label' => 'SYNC CONTACTS AND LINK WITH PARTICIPANTS', 'type' => 'sync_contacts', 'cmd' => 'sync:invoice-contacts', 'last_sync' => $sync_contacts_last_sync_datetime ?? null, ], ]; @endphp
@if (($data['active_invoice_method'] ?? '') == 'xero')
@if (\App\Helpers\Helper::checkUserHasPermission('admin.apps_settings.view')) @if ($xero_account_access) You already have access to the XERO invoice module, and no further action is needed. @else Go To Settings
Please connect to XERO to enable invoice module permissions. If you have already connected, please reconnect to regain access to the invoice module. @endif @else Note: Please reach out to the admin team to set up the XERO connection for the invoice module. @endif
{{-- @if ($xero_account_access) --}}
The sync process for master data runs in a queue. The queue processes sync tasks every minute. If you have already added a sync task, please wait for it to complete before initiating another sync request.
@foreach($cronJobs as $job)
{{-- CARD --}}
{{ $job['label'] }} @if(!empty($job['last_sync'])) Last synced at {{ \Carbon\Carbon::parse($job['last_sync'])->tz(config('app.timezone'))->format('d/m/Y h:i A') }} @endif
@php $cmd = $job['cmd']; @endphp
{{-- STATUS --}}
{{-- DAY --}}
{{-- TIME --}}
{{-- SAVE --}}
@endforeach
{{-- @endif --}} @endif