@extends('layouts.admin') @section('title', 'App 導覽列') @section('content')

設定 App 下方導覽列要顯示哪些項目。App 啟動時會讀取 GET /api/app-config?platform=ios|android,只會拿到勾選的項目;沒勾的項目不會出現在回應裡。

送審 iOS 時,只要取消該項目的 iOS 勾選(例如「練習考試」),Android 可以照常顯示。「識別字」是 App 內建的,請勿隨意新增;App 不認得的識別字會被略過。
@csrf @method('PUT')
@php $input = 'w-full px-3 py-2 rounded-lg border-2 border-gray-200 dark:border-slate-700 bg-gray-50 dark:bg-slate-800 text-gray-900 dark:text-white focus:outline-none focus:border-blue-500'; @endphp @forelse($tabs as $tab) @empty @endforelse
識別字 顯示名稱 圖示名稱 順序 iOS 顯示 Android 顯示
{{ $tab->key }} id}.label", $tab->label) }}" required maxlength="50" class="{{ $input }}"> id}.icon", $tab->icon) }}" maxlength="50" class="{{ $input }}"> id}.sort_order", $tab->sort_order) }}" required min="0" class="{{ $input }}"> enabled_ios) class="w-5 h-5 rounded"> enabled_android) class="w-5 h-5 rounded">
尚無項目
@foreach($tabs as $tab) @endforeach
@csrf
新項目預設兩個平台都不顯示
@endsection