@extends('layouts.admin') @section('title', 'Module Settings') @section('page-title', 'Module Settings') @section('breadcrumbs') Settings chevron_right Modules @endsection @section('content')
@if(($tab ?? 'invoice') === 'invoice') @if (session('success'))
check_circle {{ session('success') }}
@endif
@csrf

Invoice Numbering

Configure how invoice numbers are generated

Zero-padded length (e.g., 6 = 000001)

Available placeholders: {prefix}, {number}, {year}

@php $settings = \App\Models\InvoiceNumberingSetting::getSettings(); echo $settings->getPreviewNumber(); @endphp

Default Terms & Notes

Set default content for new invoices

@elseif(($tab ?? 'invoice') === 'quotation') @if (session('success'))
check_circle {{ session('success') }}
@endif
@csrf

Display Preferences

Preview
{{ ($quotationSettings->prefix ?? 'QUO') }}-{{ str_pad($quotationSettings->next_number ?? 1, $quotationSettings->number_length ?? 6, '0', STR_PAD_LEFT) }}

Sales Person Preferences

Default Terms & Notes

These terms will be automatically added to new quotations.

These notes will be automatically added to new quotations.

@elseif(($tab ?? 'invoice') === 'purchase') @if (session('success'))
check_circle {{ session('success') }}
@endif
@csrf

Purchase Order Numbering

Configure how purchase order numbers are generated

Zero-padded length (e.g., 6 = 000001)

{{ ($purchaseSettings->prefix ?? 'PO') }}-{{ str_pad($purchaseSettings->next_number ?? 1, $purchaseSettings->number_length ?? 6, '0', STR_PAD_LEFT) }}

Default Terms & Notes

Set default content for new purchase orders

@elseif(($tab ?? 'invoice') === 'system-info')

App Update

Check for available application updates

@if($updateInfo) @if($updateInfo['success'] ?? false) @if($updateInfo['has_update'] ?? false)
update

Update Available

Current Version: {{ $updateInfo['current_version'] ?? 'Unknown' }}

Latest Version: {{ $updateInfo['latest_version'] ?? 'Unknown' }}

@if(isset($updateInfo['checked_at']))

Last checked: {{ $updateInfo['checked_at'] }}

@endif
@else
check_circle

You are up to date!

Current Version: {{ $updateInfo['current_version'] ?? 'Unknown' }}

@if(isset($updateInfo['checked_at']))

Last checked: {{ $updateInfo['checked_at'] }}

@endif
@endif @else
error

Update Check Failed

{{ $updateInfo['message'] ?? 'Unable to check for updates' }}

@endif @else

Click "Check for Updates" to check for available updates.

@endif

System Information

Application and server environment details

@if($systemInfo)

{{ $systemInfo['app_name'] }}

{{ $systemInfo['app_version'] }}

{{ $systemInfo['app_env'] }}

{{ $systemInfo['app_debug'] ? 'Enabled' : 'Disabled' }}

{{ $systemInfo['php_version'] }}

{{ $systemInfo['laravel_version'] }}

{{ $systemInfo['server_software'] }}

{{ $systemInfo['server_os'] }}

{{ $systemInfo['database_driver'] }}

{{ $systemInfo['database_version'] }}

{{ $systemInfo['memory_limit'] }}

{{ $systemInfo['max_execution_time'] }}s

{{ $systemInfo['upload_max_filesize'] }}

{{ $systemInfo['post_max_size'] }}

{{ $systemInfo['timezone'] }}

{{ $systemInfo['locale'] }}

@endif
@elseif(($tab ?? 'invoice') === 'addon')

Addon Management

Upload and manage plugins/addons for your system

Installed Addons

Manage your installed plugins and addons

@if(isset($addons) && count($addons) > 0)
@foreach($addons as $slug => $addon) @php $status = $addon['status'] ?? []; $isEnabled = isset($status['enabled']) && $status['enabled'] === true; $statusText = $isEnabled ? 'Enabled' : 'Disabled'; @endphp

{{ $addon['name'] ?? $slug }}

{{ $addon['description'] ?? 'No description' }}

{{ $statusText }}
@if(isset($addon['version']))
tag Version: {{ $addon['version'] }}
@endif @if(isset($addon['author']))
person {{ $addon['author'] }}
@endif @if(isset($status['requires_license']) && $status['requires_license'])
lock Requires License
@endif
@if($isEnabled) @else @endif
@endforeach
@else
extension

No addons installed yet.

Upload an addon to get started.

@endif
info

Available Addons

  • SAAS Plugin - Multi-tenant SaaS functionality
  • Mobile Application - Mobile app integration
  • Landing Page - Custom landing page builder

Upload addon ZIP files to install them. Addons must follow the ProInvoice addon structure.

@endif
@endsection