@php use App\Libraries\Date;use Carbon\Carbon; @endphp
@vite(["resources/js/foreground/cart/coupon.js"])
{{-- 如果有查找到優惠券 --}} @if ($findCoupon)
{{-- CouponArea --}}
{{-- CouponBox --}}

{{ $findCoupon->title }}

{{ $findCoupon->description }}

@if ($couponLeft !== null)

剩 {{ $couponLeft }} 張

@endif

schedule 使用期限: {{ Carbon::parse($findCoupon->end_at)->format("Y/m/d") }} ({{ Date::dayOfWeekForChinese($findCoupon->end_at) }}) {{ Carbon::parse($findCoupon->end_at)->format("H:i") }}

@if($findCoupon->discount_type === 'amount' || $findCoupon->is_discount_whole_product ===0) @else @endif
{{-- CouponBtn --}}
@if( ($markedCoupon?->code === $findCoupon->code) and $showButtonUsing === true) 使用中 @else 取消 @endif
{{-- CouponAlert --}}

確認刪除此優惠券?

@else

{{ $errorMessage }}

@endif