@extends("admin/layouts.master") @section('title', 'Edit couponActive ') @section('body') @php $currency = App\Currency::first(); @endphp
@include('admin.message')
{{ __('adminstaticword.Edit') }} 優惠活動: {{ $couponActive->title }}
@csrf {{ method_field('PUT') }}
register_in_daterange ? 'checked' : ''}}>
is_first_purchase ? 'checked' : ''}}>
@if( $couponActive->coupon->count() )
@if ( $couponActive->name && $couponActive->count )
@csrf
name ? 'readonly' : '' }}>

@else
@csrf
@endif

優惠券總數:{{ $active = $couponActive->coupon->count() }}


已用掉的優惠券:{{ is_null($couponUsed) ? 0 : $used = $couponUsed }}


使用比例:{{ is_null($couponUsed) ? 0 : $used / $active * 100 }}%

@foreach( $couponActive->coupon as $coupon ) @endforeach
優惠代碼 折扣類型 起始日 過期日期 金額/天數 使用狀態
{{ $coupon->code }} {{ $coupon_types[$coupon->distype] }} {{ date('Y-m-d', strtotime($coupon->start_date)) }} {{ date('Y-m-d', strtotime($coupon->expirydate)) }} {{ $coupon->amount }} @if($coupon->couponUsed->count()) 已使用 @else 未使用 @endisset
@else

提供兩種方式產生優惠券則一即可

自動產生資料:

@csrf


從CSV匯入:

@csrf

@endif
@endsection @section('scripts') @endsection