@extends('layouts.admin') @php $slotSelectConfig = [ "placeholder" => __("Select Product"), "hasSearch" => true, "searchPlaceholder" => __("Search Product..."), "isHidePlaceholder" => false, "searchClasses" => "block w-[calc(100%-16px)] mx-2 py-2 px-3 text-sm border-slate-200 dark:border-white/10 rounded-lg focus:border-cyan-500 focus:ring-cyan-500 bg-slate-50 dark:bg-slate-900/50 dark:text-slate-200 placeholder:text-slate-400 dark:placeholder:text-slate-500", "searchWrapperClasses" => "sticky top-0 bg-white/95 dark:bg-slate-900/95 backdrop-blur-md p-2 z-10", "toggleClasses" => "hs-select-toggle luxury-select-toggle", "toggleTemplate" => '', "dropdownClasses" => "hs-select-menu w-full bg-white dark:bg-slate-900 border border-slate-200 dark:border-white/10 rounded-xl shadow-[0_20px_50px_rgba(0,0,0,0.3)] mt-2 z-[150] animate-luxury-in", "optionClasses" => "hs-select-option py-2.5 px-3 mb-0.5 text-sm text-slate-800 dark:text-slate-300 cursor-pointer hover:bg-slate-100 dark:hover:bg-cyan-500/10 dark:hover:text-cyan-400 rounded-lg flex items-center justify-between transition-all duration-300", "optionTemplate" => '
' ]; @endphp @section('content')
@include('admin.sales.partials.batch-result-banner') {{-- Page Header --}} {{-- Tab Navigation --}} {{-- Tab Contents --}}
{{-- List Tab --}}
@include('admin.sales.pickup-codes.partials.tab-list')
{{-- End List Tab --}} {{-- Logs Tab --}} {{-- End Logs Tab --}}
{{-- End relative min-h --}}
{{-- End mt-6 --}} {{-- Edit Pickup Code Modal --}}
@csrf @method('PUT')

{{ __('Edit Pickup Code') }}

{{ __('Update usage and expiry') }}

{{-- Usage Limit --}}
{{-- Unified Luxury Counter --}}
{{-- Quick Select Buttons --}}
{{-- Expiry Date --}}
{{-- Create Pickup Code Modal --}}

{{ __('Add Pickup Code') }}

@csrf
@foreach($machines as $machine) @endforeach
{{-- Rebuilt by Alpine --}}

{{ __('This product is not stocked on the selected machine; the code may not be redeemable until restocked.') }}

{{-- Unified Luxury Counter --}}
{{-- Quick Select Buttons - Removed scrollbar --}}
{{-- Quantity (Batch Generate) — 獨立整列,避免與使用次數上限擠在同一列重疊。上限/快捷選項依角色分級 --}}

{{ __('Batch mode: codes are auto-generated and the custom code is ignored.') }}

{{-- Pickup Code Preview Section --}}
{{-- Validity Period Section (Flexible) --}}
{{ __('Hrs') }}
{{ __('Expected Expiry') }}
{{-- QR Modal --}}

{{ __('QR Code') }}

{{ __('Pickup Code') }}:

{{ __('Scan this code at the machine or share the link with the customer.') }}

{{-- Copy Link Button --}} {{-- Copy Code Button --}} {{-- Download Image Button --}}
{{-- Confirm Cancel Modal --}}
@endsection