Features: - Implement two fee types: entrance fee and annual fee (both NT$1,000) - Add 50% discount for disability certificate holders - Add disability certificate upload in member profile - Integrate disability verification into cashier approval workflow - Add membership fee settings in system admin Document permissions: - Fix hard-coded role logic in Document model - Use permission-based authorization instead of role checks Additional features: - Add announcements, general ledger, and trial balance modules - Add income management and accounting entries - Add comprehensive test suite with factories - Update UI translations to Traditional Chinese 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
125 lines
8.4 KiB
PHP
125 lines
8.4 KiB
PHP
<x-app-layout>
|
|
<x-slot name="header">
|
|
<h2 class="text-xl font-semibold leading-tight text-gray-800 dark:text-gray-200">
|
|
系統設定 - 文件功能
|
|
</h2>
|
|
</x-slot>
|
|
|
|
<div class="py-12">
|
|
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
|
|
<div class="grid grid-cols-1 gap-6 lg:grid-cols-4">
|
|
<!-- Sidebar -->
|
|
<div class="lg:col-span-1">
|
|
@include('admin.settings._sidebar')
|
|
</div>
|
|
|
|
<!-- Main Content -->
|
|
<div class="lg:col-span-3">
|
|
@if (session('status'))
|
|
<div class="mb-6 rounded-md bg-green-50 dark:bg-green-900/50 p-4">
|
|
<p class="text-sm font-medium text-green-800 dark:text-green-200">{{ session('status') }}</p>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="bg-white dark:bg-gray-800 shadow sm:rounded-lg">
|
|
<div class="px-6 py-5 border-b border-gray-200 dark:border-gray-700">
|
|
<h3 class="text-lg font-medium text-gray-900 dark:text-gray-100">文件功能開關</h3>
|
|
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400">控制文件管理系統的進階功能</p>
|
|
</div>
|
|
|
|
<form action="{{ route('admin.settings.features.update') }}" method="POST" class="px-6 py-6 space-y-6">
|
|
@csrf
|
|
|
|
<!-- QR Codes -->
|
|
<div class="flex items-start">
|
|
<div class="flex items-center h-5">
|
|
<input type="checkbox" name="qr_codes_enabled" id="qr_codes_enabled"
|
|
{{ $settings['qr_codes_enabled'] ? 'checked' : '' }}
|
|
class="w-4 h-4 text-indigo-600 dark:text-indigo-500 border-gray-300 dark:border-gray-700 rounded focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:bg-gray-900">
|
|
</div>
|
|
<div class="ml-3 text-sm">
|
|
<label for="qr_codes_enabled" class="font-medium text-gray-700 dark:text-gray-300">啟用 QR Code 功能</label>
|
|
<p class="text-gray-500 dark:text-gray-400">允許為文件產生 QR Code 以便快速存取</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Tagging -->
|
|
<div class="flex items-start">
|
|
<div class="flex items-center h-5">
|
|
<input type="checkbox" name="tagging_enabled" id="tagging_enabled"
|
|
{{ $settings['tagging_enabled'] ? 'checked' : '' }}
|
|
class="w-4 h-4 text-indigo-600 dark:text-indigo-500 border-gray-300 dark:border-gray-700 rounded focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:bg-gray-900">
|
|
</div>
|
|
<div class="ml-3 text-sm">
|
|
<label for="tagging_enabled" class="font-medium text-gray-700 dark:text-gray-300">啟用標籤功能</label>
|
|
<p class="text-gray-500 dark:text-gray-400">允許為文件添加標籤以便分類和搜尋</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Expiration -->
|
|
<div class="flex items-start">
|
|
<div class="flex items-center h-5">
|
|
<input type="checkbox" name="expiration_enabled" id="expiration_enabled"
|
|
{{ $settings['expiration_enabled'] ? 'checked' : '' }}
|
|
class="w-4 h-4 text-indigo-600 dark:text-indigo-500 border-gray-300 dark:border-gray-700 rounded focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:bg-gray-900">
|
|
</div>
|
|
<div class="ml-3 text-sm">
|
|
<label for="expiration_enabled" class="font-medium text-gray-700 dark:text-gray-300">啟用到期日功能</label>
|
|
<p class="text-gray-500 dark:text-gray-400">允許設定文件到期日並接收提醒通知</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bulk Import -->
|
|
<div class="flex items-start">
|
|
<div class="flex items-center h-5">
|
|
<input type="checkbox" name="bulk_import_enabled" id="bulk_import_enabled"
|
|
{{ $settings['bulk_import_enabled'] ? 'checked' : '' }}
|
|
class="w-4 h-4 text-indigo-600 dark:text-indigo-500 border-gray-300 dark:border-gray-700 rounded focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:bg-gray-900">
|
|
</div>
|
|
<div class="ml-3 text-sm">
|
|
<label for="bulk_import_enabled" class="font-medium text-gray-700 dark:text-gray-300">啟用批次匯入功能</label>
|
|
<p class="text-gray-500 dark:text-gray-400">允許管理員批次匯入多個文件</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Statistics -->
|
|
<div class="flex items-start">
|
|
<div class="flex items-center h-5">
|
|
<input type="checkbox" name="statistics_enabled" id="statistics_enabled"
|
|
{{ $settings['statistics_enabled'] ? 'checked' : '' }}
|
|
class="w-4 h-4 text-indigo-600 dark:text-indigo-500 border-gray-300 dark:border-gray-700 rounded focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:bg-gray-900">
|
|
</div>
|
|
<div class="ml-3 text-sm">
|
|
<label for="statistics_enabled" class="font-medium text-gray-700 dark:text-gray-300">啟用統計報表功能</label>
|
|
<p class="text-gray-500 dark:text-gray-400">顯示文件下載統計和使用分析</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Version History -->
|
|
<div class="flex items-start">
|
|
<div class="flex items-center h-5">
|
|
<input type="checkbox" name="version_history_enabled" id="version_history_enabled"
|
|
{{ $settings['version_history_enabled'] ? 'checked' : '' }}
|
|
class="w-4 h-4 text-indigo-600 dark:text-indigo-500 border-gray-300 dark:border-gray-700 rounded focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:bg-gray-900">
|
|
</div>
|
|
<div class="ml-3 text-sm">
|
|
<label for="version_history_enabled" class="font-medium text-gray-700 dark:text-gray-300">啟用版本控制功能</label>
|
|
<p class="text-gray-500 dark:text-gray-400">保留文件歷史版本並允許回溯</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Submit Button -->
|
|
<div class="flex items-center justify-end pt-4 border-t border-gray-200 dark:border-gray-700">
|
|
<button type="submit"
|
|
class="inline-flex justify-center rounded-md border border-transparent bg-indigo-600 dark:bg-indigo-500 py-2 px-4 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 dark:hover:bg-indigo-600 focus:outline-none focus:ring-2 focus:ring-indigo-500 dark:focus:ring-indigo-600 focus:ring-offset-2 dark:focus:ring-offset-gray-800">
|
|
儲存變更
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|