@php use App\Enums\ShippingTemperatureForSystem;use App\Libraries\Image; @endphp @if($cartContentGroup->isNotEmpty()) {{-- 新增:加購商品 --}}
{{-- 如果要關閉,添加 .collapsed 和 aria-expanded="false" --}}
!$isExpanded($checkedThisGroup, $inputCheckedThisGroupValue) ]) type="button" data-bs-toggle="collapse" data-bs-target="#accordionExample_{{ $inputCheckedThisGroupValue }}" aria-expanded="{{ $checkedThisGroup === $inputCheckedThisGroupValue ? 'true' : 'false' }}" aria-controls="accordionExample_{{ $inputCheckedThisGroupValue }}"> {{-- 這個 radio 只是好看用。實際有功能的其實在 .checkedThisGroupRadio --}}
{{ $title }}
{{-- 如果要關閉,添加 .collapse--}}
!($isExpanded($checkedThisGroup, $inputCheckedThisGroupValue)) ]) aria-labelledby="headingOne">
{{-- 這顆 radio 可以觸發 livewire 改為選取當前的溫層內的所有商品 --}}
{{-- cartGrid --}}
商品 / 規格
單價
數量
價格
刪除
加購
@foreach($cartContentGroup as $item)
{{-- 商品 --}}
options->isChecked === true) type="checkbox" name="isChecked" class="form-check-input me-5" {{-- 避免跨溫層點擊 --}} @disabled($inputCheckedThisGroupValue !== $checkedThisGroup) wire:change="toggleItemChecked('{{ $item->rowId }}')" >
{{ $this->itemTitle($item) }}
NT{!! $this->itemSalePrice($item) !!}
{{ $this->itemQuantity($item) }}
NT{!! $this->itemTotal($item) !!}
{{-- mobile --}}
{{ $this->itemTitle($item) }}
{{ $this->itemQuantity($item) }}
NT{!! $this->itemTotal($item) !!}
{{-- mobile --}}
刪除
{{-- 加購 --}}
options->isChecked === true) type="checkbox" name="isChecked" class="form-check-input align-self-center me-5" {{-- 避免跨溫層點擊 --}} {{-- @disabled($inputCheckedThisGroupValue !== $checkedThisGroup) wire:change="toggleItemChecked('{{ $item->rowId }}')" --}} >
加購
{{ $this->itemTitle($item) }}
NT{!! $this->itemSalePrice($item) !!}
{{ $this->itemQuantity($item) }}
NT{!! $this->itemTotal($item) !!}
{{ $this->itemTitle($item) }}
{{ $this->itemQuantity($item) }}
NT{!! $this->itemTotal($item) !!}
刪除
@endforeach
@endif