diff --git a/README.md b/README.md index a1ed1cf..5e460dc 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ docker compose exec laravel.test php artisan migrate --seed ``` > **預設管理員帳號**: -> - Email: `admin@star-cloud.com` +> - Email: `admin` > - Password: `password` **4.4 安裝前端依賴** diff --git a/package-lock.json b/package-lock.json index e172f71..d24ef8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "axios": "^1.6.4", "laravel-vite-plugin": "^1.0.0", "postcss": "^8.4.31", - "preline": "^3.2.0", + "preline": "^3.2.3", "tailwindcss": "^3.1.0", "vite": "^5.0.0" } diff --git a/package.json b/package.json index f9add43..cbb3d8e 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "axios": "^1.6.4", "laravel-vite-plugin": "^1.0.0", "postcss": "^8.4.31", - "preline": "^3.2.0", + "preline": "^3.2.3", "tailwindcss": "^3.1.0", "vite": "^5.0.0" } -} \ No newline at end of file +} diff --git a/resources/views/admin/app-configs/index.blade.php b/resources/views/admin/app-configs/index.blade.php index 925aec7..e620100 100644 --- a/resources/views/admin/app-configs/index.blade.php +++ b/resources/views/admin/app-configs/index.blade.php @@ -2,17 +2,10 @@ @section('content') @php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; - $inputBg = $isLight ? 'bg-gray-50 border-gray-300' : 'bg-gray-700 border-gray-600'; $inputText = $isLight ? 'text-gray-900' : 'text-gray-300'; @endphp
-

APP 管理設定

+

APP 管理設定

@@ -21,44 +14,44 @@
-
-

UI 元素設定

+
+

UI 元素設定

- - + +
- - + +
-
-

小幫手設定

+
+

小幫手設定

where('key', 'helper_enabled')->first()->value ?? '0') == '1' ? 'checked' : '' }} class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> - +
-
-

問卷與互動遊戲

+
+

問卷與互動遊戲

where('key', 'game_enabled')->first()->value ?? '0') == '1' ? 'checked' : '' }} class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> - +
- - + +
diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 3dac410..a512777 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -1,111 +1,165 @@ @extends('layouts.admin') @section('content') -@php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; -@endphp -
-

儀表板

- -
-
- -
-
-
- - - -
-
-

{{ $totalMachines }}

-
總機台數
-
-
-
- - -
-
-
- - - -
-
-

{{ $onlineMachines }}

-
連線中
-
-
-
- - -
-
-
- - - -
-
-

{{ $offlineMachines }}

-
離線
-
-
-
- - -
-
-
- - - -
-
-

{{ $errorMachines }}

-
異常
-
-
+
+ +
+ +
+
+
+

+ 總銷售額 +

+
+
+ +
+
-
-
-
-
-
- - - - - - - - - - - - - - - - -
標題狀態時間
-
系統初始化
-
- 正常 - - 剛剛 -
-
-
+
+

+ $72,540 +

+ + + + 1.7% + +
+
+ + + +
+
+
+

+ 活躍機台 +

+
+ +
+

+ 124 +

+ + + + 0.3% + + +
+
+
+ + + +
+
+
+

+ 庫存警告 +

+
+ +
+

+ 12 +

+
+
+
+ + + +
+
+
+

+ 本月新增會員 +

+
+ +
+

+ 28 +

+
+
+
+ +
+ + +
+ +
+ +
+
+

+ 營收趨勢 +

+

+ $123,450 +

+
+ +
+ + + 25% + +
+
+ + +
+
+ + + +
+ +
+
+

+ 訪客分析 +

+

+ 92,913 +

+
+ +
+ + + 11% + +
+
+ + +
+
+ +
@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/admin/deposit-bonus-rules/index.blade.php b/resources/views/admin/deposit-bonus-rules/index.blade.php index 00fa340..b70972a 100644 --- a/resources/views/admin/deposit-bonus-rules/index.blade.php +++ b/resources/views/admin/deposit-bonus-rules/index.blade.php @@ -2,15 +2,6 @@ @section('content') @php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; - $thBg = $isLight ? 'bg-gray-50' : 'bg-gray-700'; - $inputBg = $isLight ? 'bg-white' : 'bg-gray-700'; - $inputBorder = $isLight ? 'border-gray-300' : 'border-gray-600'; @endphp {{-- Toast 通知 --}} @@ -35,31 +26,31 @@
-

儲值回饋設定

+

儲值回饋設定

- - +
+ - - - - - - + + + + + + - + @forelse($rules as $rule) - - - - + + + + @empty - + @endforelse @@ -90,39 +81,39 @@
-
-
-

新增儲值回饋規則

+
+
+

新增儲值回饋規則

@csrf
- - + +
- - + +
- -
- - + +
- +
-
- +
+
diff --git a/resources/views/admin/gift-definitions/index.blade.php b/resources/views/admin/gift-definitions/index.blade.php index 88338b4..062c629 100644 --- a/resources/views/admin/gift-definitions/index.blade.php +++ b/resources/views/admin/gift-definitions/index.blade.php @@ -1,17 +1,7 @@ @extends('layouts.admin') @section('content') -@php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; - $thBg = $isLight ? 'bg-gray-50' : 'bg-gray-700'; - $inputBg = $isLight ? 'bg-white' : 'bg-gray-700'; - $inputBorder = $isLight ? 'border-gray-300' : 'border-gray-600'; - +@php $typeLabels = [ 'points' => '點數', 'coupon' => '優惠券', @@ -51,33 +41,33 @@
-

禮品設定

+

禮品設定

-
名稱最低儲值回饋類型回饋值狀態操作名稱最低儲值回饋類型回饋值狀態操作
{{ $rule->name }}${{ number_format($rule->min_amount) }}{{ $rule->bonus_type == 'fixed' ? '固定金額' : '百分比' }}{{ $rule->bonus_type == 'fixed' ? '$'.number_format($rule->bonus_value) : $rule->bonus_value.'%' }}{{ $rule->name }}${{ number_format($rule->min_amount) }}{{ $rule->bonus_type == 'fixed' ? '固定金額' : '百分比' }}{{ $rule->bonus_type == 'fixed' ? '$'.number_format($rule->bonus_value) : $rule->bonus_value.'%' }} @if($rule->is_active) 啟用 @@ -77,7 +68,7 @@
尚無資料尚無資料
- +
+ - - - - - - - + + + + + + + - + @forelse($gifts as $gift) - - - - - + + + + + @empty - + @endforelse @@ -108,32 +98,32 @@
-
-
-

新增禮品

+
+
+

新增禮品

@csrf
- - + +
- - @foreach($typeLabels as $key => $label) @endforeach
- - + +
- - @foreach($tiers as $tier) @@ -141,24 +131,24 @@
- - @foreach($triggerLabels as $key => $label) @endforeach
- - + +
- +
-
- +
+
diff --git a/resources/views/admin/machines/create.blade.php b/resources/views/admin/machines/create.blade.php index 896e4e0..d66872f 100644 --- a/resources/views/admin/machines/create.blade.php +++ b/resources/views/admin/machines/create.blade.php @@ -2,27 +2,27 @@ @section('content')
-

新增機台

+

新增機台

-
+ @csrf
- - + + @error('name') {{ $message }} @enderror
- - + + @error('location') {{ $message }} @enderror
- - @@ -31,19 +31,19 @@
- - + + @error('temperature') {{ $message }} @enderror
- - + + @error('firmware_version') {{ $message }} @enderror
- 取消 + 取消
diff --git a/resources/views/admin/machines/edit.blade.php b/resources/views/admin/machines/edit.blade.php index f57baf5..462de9b 100644 --- a/resources/views/admin/machines/edit.blade.php +++ b/resources/views/admin/machines/edit.blade.php @@ -2,28 +2,28 @@ @section('content')
-

編輯機台

+

編輯機台

-
+ @csrf @method('PUT')
- - + + @error('name') {{ $message }} @enderror
- - + + @error('location') {{ $message }} @enderror
- - @@ -32,19 +32,19 @@
- - + + @error('temperature') {{ $message }} @enderror
- - + + @error('firmware_version') {{ $message }} @enderror
- 取消 + 取消
diff --git a/resources/views/admin/machines/index.blade.php b/resources/views/admin/machines/index.blade.php index 36b1b12..78ea5ca 100644 --- a/resources/views/admin/machines/index.blade.php +++ b/resources/views/admin/machines/index.blade.php @@ -2,16 +2,10 @@ @section('content') @php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; @endphp
-

機台管理

+

機台管理

新增機台 @@ -20,28 +14,28 @@
-
+
名稱類型數值適用等級觸發條件狀態操作名稱類型數值適用等級觸發條件狀態操作
{{ $gift->name }}{{ $typeLabels[$gift->type] ?? $gift->type }}{{ $gift->value }}{{ $gift->tier?->name ?? '全部' }}{{ $triggerLabels[$gift->trigger] ?? $gift->trigger }}{{ $gift->name }}{{ $typeLabels[$gift->type] ?? $gift->type }}{{ $gift->value }}{{ $gift->tier?->name ?? '全部' }}{{ $triggerLabels[$gift->trigger] ?? $gift->trigger }} @if($gift->is_active) 啟用 @@ -95,7 +85,7 @@
尚無資料尚無資料
- - - - - - + + + + + + - + @foreach($machines as $machine) - - - - - -
名稱位置狀態溫度最後心跳操作名稱位置狀態溫度最後心跳操作
-
{{ $machine->name }}
+
+
{{ $machine->name }}
-
{{ $machine->location ?? '-' }}
+
+
{{ $machine->location ?? '-' }}
+ @if($machine->status === 'online') 連線中 @elseif($machine->status === 'offline') @@ -50,13 +44,13 @@ 異常 @endif -
{{ $machine->temperature ? $machine->temperature . '°C' : '-' }}
+
+
{{ $machine->temperature ? $machine->temperature . '°C' : '-' }}
-
{{ $machine->last_heartbeat_at ? $machine->last_heartbeat_at->diffForHumans() : '-' }}
+
+
{{ $machine->last_heartbeat_at ? $machine->last_heartbeat_at->diffForHumans() : '-' }}
+ 查看 編輯
diff --git a/resources/views/admin/machines/show.blade.php b/resources/views/admin/machines/show.blade.php index a0cb713..9516ebd 100644 --- a/resources/views/admin/machines/show.blade.php +++ b/resources/views/admin/machines/show.blade.php @@ -3,12 +3,12 @@ @section('content')
-

機台詳情:{{ $machine->name }}

+

機台詳情:{{ $machine->name }}

@@ -16,15 +16,15 @@
-
+

基本資訊

-

位置

+

位置

{{ $machine->location ?? '-' }}

-

狀態

+

狀態

@if($machine->status === 'online') 連線中 @elseif($machine->status === 'offline') @@ -34,22 +34,22 @@ @endif
-

溫度

+

溫度

{{ $machine->temperature ? $machine->temperature . '°C' : '-' }}

-

韌體版本

+

韌體版本

{{ $machine->firmware_version ?? '-' }}

-

最後心跳

+

最後心跳

{{ $machine->last_heartbeat_at ? $machine->last_heartbeat_at->diffForHumans() : '-' }}

-
+

最近日誌

    @@ -64,7 +64,7 @@ @else @endif -

    {{ $log->message }}

    +

    {{ $log->message }}

{{ $log->created_at->format('m/d H:i') }}
diff --git a/resources/views/admin/members/index.blade.php b/resources/views/admin/members/index.blade.php index 78018c2..12f9c69 100644 --- a/resources/views/admin/members/index.blade.php +++ b/resources/views/admin/members/index.blade.php @@ -2,62 +2,55 @@ @section('content') @php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; - $thBg = $isLight ? 'bg-gray-50' : 'bg-gray-700'; @endphp
-

會員列表

+

會員列表

{{-- 搜尋與篩選 (預留空間) --}}
-
+
- - - - - - - + @forelse ($members as $member) - - - - - - @empty - diff --git a/resources/views/admin/membership-tiers/index.blade.php b/resources/views/admin/membership-tiers/index.blade.php index dfc9ba3..cc3dab4 100644 --- a/resources/views/admin/membership-tiers/index.blade.php +++ b/resources/views/admin/membership-tiers/index.blade.php @@ -2,15 +2,6 @@ @section('content') @php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; - $thBg = $isLight ? 'bg-gray-50' : 'bg-gray-700'; - $inputBg = $isLight ? 'bg-white' : 'bg-gray-700'; - $inputBorder = $isLight ? 'border-gray-300' : 'border-gray-600'; @endphp {{-- Toast 通知 --}} @@ -35,31 +26,31 @@
-

會員等級設定

+

會員等級設定

-
+ UUID + 姓名 + Email + 手機 + 狀態 + 註冊時間
-
{{ $member->uuid }}
+
+
{{ $member->uuid }}
-
{{ $member->name }}
+
+
{{ $member->name }}
-
{{ $member->email ?? '-' }}
+
+
{{ $member->email ?? '-' }}
-
{{ $member->phone ?? '-' }}
+
+
{{ $member->phone ?? '-' }}
+ @if($member->is_active) 啟用 @@ -68,13 +61,13 @@ @endif + {{ $member->created_at->format('Y-m-d H:i') }}
+ 尚無會員資料
- +
+ - - - - - - + + + + + + - + @forelse($tiers as $tier) - - - - + + + + @empty - + @endforelse @@ -90,36 +81,36 @@
{{-- Modal 內容 --}} -
-
-

新增會員等級

+
+
+

新增會員等級

@csrf
- - + +
- - + +
- - + +
- - + +
- +
-
- +
+
diff --git a/resources/views/admin/placeholder.blade.php b/resources/views/admin/placeholder.blade.php index 7e2178d..c987810 100644 --- a/resources/views/admin/placeholder.blade.php +++ b/resources/views/admin/placeholder.blade.php @@ -1,39 +1,26 @@ -@php - $theme = request()->cookie('theme', 'dark-blue'); - $themes = [ - 'dark-blue' => ['card' => 'bg-gray-800', 'accent' => 'indigo'], - 'dark-purple' => ['card' => 'bg-slate-800', 'accent' => 'purple'], - 'dark-green' => ['card' => 'bg-zinc-800', 'accent' => 'emerald'], - 'light-blue' => ['card' => 'bg-white', 'accent' => 'blue'], - 'light-green' => ['card' => 'bg-white', 'accent' => 'green'], - ]; - $currentTheme = $themes[$theme] ?? $themes['dark-blue']; - $isLight = in_array($theme, ['light-blue', 'light-green']); -@endphp - @extends('layouts.admin') @section('content')
-
+
- +
-

{{ $title ?? '功能頁面' }}

-

{{ $description ?? '此功能正在開發中' }}

-
+

{{ $title ?? '功能頁面' }}

+

{{ $description ?? '此功能正在開發中' }}

+
🚧 功能開發中
@if(isset($features) && count($features) > 0)
-

規劃功能:

-
    +

    規劃功能:

    +
      @foreach($features as $feature)
    • - + {{ $feature }} diff --git a/resources/views/admin/point-rules/index.blade.php b/resources/views/admin/point-rules/index.blade.php index 5e09b36..7131620 100644 --- a/resources/views/admin/point-rules/index.blade.php +++ b/resources/views/admin/point-rules/index.blade.php @@ -2,15 +2,6 @@ @section('content') @php - $theme = request()->cookie('theme', 'dark-blue'); - $isLight = in_array($theme, ['light-blue', 'light-green']); - $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; - $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; - $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; - $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; - $thBg = $isLight ? 'bg-gray-50' : 'bg-gray-700'; - $inputBg = $isLight ? 'bg-white' : 'bg-gray-700'; - $inputBorder = $isLight ? 'border-gray-300' : 'border-gray-600'; $triggerLabels = [ 'purchase' => '消費', @@ -43,33 +34,33 @@
      -

      點數規則設定

      +

      點數規則設定

      -
名稱年費折扣點數倍率預設操作名稱年費折扣點數倍率預設操作
{{ $tier->name }}{{ $tier->annual_fee == 0 ? '免費' : '$'.number_format($tier->annual_fee) }}{{ $tier->discount_rate * 100 }}%{{ $tier->point_multiplier }}x{{ $tier->name }}{{ $tier->annual_fee == 0 ? '免費' : '$'.number_format($tier->annual_fee) }}{{ $tier->discount_rate * 100 }}%{{ $tier->point_multiplier }}x @if($tier->is_default) 預設 @@ -75,7 +66,7 @@
尚無資料尚無資料
- +
+ - - - - - - - + + + + + + + - + @forelse($rules as $rule) - - - - - + + + + + @empty - + @endforelse @@ -100,44 +91,44 @@
-
-
-

新增點數規則

+
+
+

新增點數規則

@csrf
- - + +
- - @foreach($triggerLabels as $key => $label) @endforeach
- - + +
- - + +
- - + +
- +
-
- +
+
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index fcded92..bc93a11 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -1,47 +1,123 @@ - - - + + + + + + + {{ config('app.name', 'Laravel') }} + + + + + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+ + - -
- + +
+
+
+

登入

+

+ 請輸入您的帳號密碼以繼續 +

+
- + + @if (session('status')) +
+ {{ session('status') }} +
+ @endif - +
+ @csrf + +
+ +
+ +
+ + +
+ @if ($errors->get('username')) +

{{ $errors->first('username') }}

+ @endif +
+ + + +
+
+ + @if (Route::has('password.request')) + + 忘記密碼? + + @endif +
+
+ + +
+ @if ($errors->get('password')) +

{{ $errors->first('password') }}

+ @endif +
+ + + +
+
+ +
+
+ +
+
+ + + +
+ +
- - -
- -
- -
- @if (Route::has('password.request')) - - {{ __('Forgot your password?') }} - - @endif - - - {{ __('Log in') }} - -
- - +
+ + diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 4024c64..a512777 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -1,17 +1,165 @@ - - -

- {{ __('Dashboard') }} -

-
+@extends('layouts.admin') -
-
-
-
- {{ __("You're logged in!") }} -
+@section('content') +
+ +
+ +
+
+
+

+ 總銷售額 +

+
+
+ +
+
+ +
+

+ $72,540 +

+ + + + 1.7% + + +
+
- + + + +
+
+
+

+ 活躍機台 +

+
+ +
+

+ 124 +

+ + + + 0.3% + + +
+
+
+ + + +
+
+
+

+ 庫存警告 +

+
+ +
+

+ 12 +

+
+
+
+ + + +
+
+
+

+ 本月新增會員 +

+
+ +
+

+ 28 +

+
+
+
+ +
+ + +
+ +
+ +
+
+

+ 營收趨勢 +

+

+ $123,450 +

+
+ +
+ + + 25% + +
+
+ + +
+
+ + + +
+ +
+
+

+ 訪客分析 +

+

+ 92,913 +

+
+ +
+ + + 11% + +
+
+ + +
+
+ +
+
+@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/layouts/admin.blade.php b/resources/views/layouts/admin.blade.php index 9265638..6c34ea7 100644 --- a/resources/views/layouts/admin.blade.php +++ b/resources/views/layouts/admin.blade.php @@ -1,55 +1,5 @@ -@php - $theme = request()->cookie('theme', 'dark-blue'); - - // 主題配置 - $themes = [ - 'dark-blue' => [ - 'name' => '深色藍', - 'body' => 'bg-gray-900 text-gray-100', - 'sidebar' => 'bg-gray-800 border-gray-700', - 'header' => 'bg-gray-800 border-gray-700', - 'card' => 'bg-gray-800', - 'accent' => 'indigo', - ], - 'dark-purple' => [ - 'name' => '深色紫', - 'body' => 'bg-slate-900 text-slate-100', - 'sidebar' => 'bg-slate-800 border-slate-700', - 'header' => 'bg-slate-800 border-slate-700', - 'card' => 'bg-slate-800', - 'accent' => 'purple', - ], - 'dark-green' => [ - 'name' => '深色綠', - 'body' => 'bg-zinc-900 text-zinc-100', - 'sidebar' => 'bg-zinc-800 border-zinc-700', - 'header' => 'bg-zinc-800 border-zinc-700', - 'card' => 'bg-zinc-800', - 'accent' => 'emerald', - ], - 'light-blue' => [ - 'name' => '亮色藍', - 'body' => 'bg-gray-50 text-gray-900', - 'sidebar' => 'bg-white border-gray-200', - 'header' => 'bg-white border-gray-200', - 'card' => 'bg-white', - 'accent' => 'blue', - ], - 'light-green' => [ - 'name' => '亮色綠', - 'body' => 'bg-green-50 text-gray-900', - 'sidebar' => 'bg-white border-green-200', - 'header' => 'bg-white border-green-200', - 'card' => 'bg-white', - 'accent' => 'green', - ], - ]; - - $currentTheme = $themes[$theme] ?? $themes['dark-blue']; - $isLight = in_array($theme, ['light-blue', 'light-green']); -@endphp - + @@ -62,88 +12,168 @@ + @vite(['resources/css/app.css', 'resources/js/app.js']) - -
- -
-
+ - - - -
- -
-
-
-
- -
- + + +
+ -
- @foreach($themes as $key => $themeData) -
- @csrf - - - - @endforeach -
-
- - -
- -
- 個人檔案 -
- @csrf - - + +
+
+

Signed in as

+

{{ Auth::user()->email }}

+
+
+ + + 個人檔案 + +
+ @csrf + + +
-
+
+ + + - -
- @yield('content') -
+ + +
+
+ + + + + +
    +
  1. + Star Cloud + + + +
  2. +
  3. + Dashboard +
  4. +
+
+ + + +
+ + + + + + +
+ + + +
+
+ @yield('content') +
+
+ + + @yield('scripts') diff --git a/resources/views/layouts/partials/sidebar-menu.blade.php b/resources/views/layouts/partials/sidebar-menu.blade.php index 4467d4b..232eb06 100644 --- a/resources/views/layouts/partials/sidebar-menu.blade.php +++ b/resources/views/layouts/partials/sidebar-menu.blade.php @@ -1,374 +1,278 @@ -{{-- 1. 儀表板 (獨立項目) --}} - - - - - 儀表板 - +{{-- 1. 儀表板 --}} +
  • + + + 儀表板 + +
  • -{{-- 2. 應用程式 --}} -
    - - + -{{-- 會員管理 (新增) --}} -
    - - + -{{-- 3. 機台管理 --}} -
    - - + -{{-- 4. APP管理 --}} -
    - - + -{{-- 5. 倉庫管理 --}} -
    - - + -{{-- 6. 銷售管理 --}} -
    - - + -{{-- 7. 分析管理 --}} -
    - - + -{{-- 8. 稽核管理 --}} -
    - - + -{{-- 9. 資料設定 --}} -
    - - + -{{-- 10. 遠端管理 --}} -
    - - -
    -{{-- 11. Line管理 --}} -
    - - + -{{-- 12. 預約系統 --}} -
    - - + -{{-- 13. 特殊權限管理 --}} -
    - - + -{{-- 14. 權限設定 --}} -
    - - + + +{{-- 15. 權限設定 --}} +
  • + + +
  • diff --git a/tailwind.config.js b/tailwind.config.js index b5d0535..d8b8952 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -8,7 +8,7 @@ export default { './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './storage/framework/views/*.php', './resources/views/**/*.blade.php', - './node_modules/preline/preline.js', + './node_modules/preline/dist/*.js', ], safelist: [ @@ -30,5 +30,7 @@ export default { }, }, - plugins: [forms], + plugins: [ + forms, + ], };
    名稱觸發條件每單位點數單位金額有效天數狀態操作名稱觸發條件每單位點數單位金額有效天數狀態操作
    {{ $rule->name }}{{ $triggerLabels[$rule->trigger] ?? $rule->trigger }}{{ $rule->points_per_unit }} 點${{ number_format($rule->unit_amount) }}{{ $rule->validity_days }} 天{{ $rule->name }}{{ $triggerLabels[$rule->trigger] ?? $rule->trigger }}{{ $rule->points_per_unit }} 點${{ number_format($rule->unit_amount) }}{{ $rule->validity_days }} 天 @if($rule->is_active) 啟用 @@ -87,7 +78,7 @@
    尚無資料尚無資料