@extends('theme.master') @section('title', '訂閱紀錄') @section('content') @include('admin.message')

{{ __('frontstaticword.PurchaseHistory') }}

{{ __('adminstaticword.Subscription') . __('adminstaticword.Content') }}

{{ __('adminstaticword.Buy') . __('adminstaticword.Record') }}

{{ __('adminstaticword.Coupon') . __('adminstaticword.Used') }}

@if($effectOrder)
{{ __('adminstaticword.SubscriptionPlans') }} : @isset($effectOrder->subscription_plan) {{ $effectOrder->subscription_plan->name }} @else 此訂單無效 @endisset @if($effectOrder->status == 6) 已過期 @endif
{{ __('frontstaticword.EnrollDuration') }} :  {{ $effectOrder->enroll_start }} ~ {{ $effectOrder->enroll_expire }}  
@if($effectOrder) @if (Auth::User()->icashpay_token && $effectOrder->payment_method == 'icashpay')
I Cash Pay 解綁
@endif @if (Auth::User()->cathay_card_id && $effectOrder->payment_method == 'cathaybk')
信用卡解綁
@endif @endif

@if ( isset($effectOrder->plus_channel_id) ) @foreach($plusOrders as $effectOrder) @endforeach
{{ __('frontstaticword.Plus') }}
{{ $effectOrder->plus_channel->name }}
@endif @if ($effectOrder->status == 1 || $effectOrder->status == 2) @if($effectOrder->payment_method == 'ios_pay')

請至移致 IOS 手機 APP 取消訂閱,謝謝 !

@else

若取消訂閱,待訂閱時間結束後將不再累積獎勵點數。

@csrf
@endif @endif @if ($effectOrder->status == 4)
@csrf
@endif @if ($effectOrder->status == 6) {{ __('frontstaticword.ReSubscription') }} @endif @else @if ( isset($plan) )
{{ __('frontstaticword.SubscriptionPlan') }} : @if(isset($plan->subscription_id)){{ $plan->subscription_plan->name }}@endif
{{ __('frontstaticword.EnrollDuration') }} :  {{$plan->enroll_start}} ~ {{$plan->enroll_expire}} 

@foreach($plusChannels as $plusChannel) @endforeach
{{ __('frontstaticword.Plus') }}
{{ $plusChannel->plus_channel->name }}
@csrf
@else

目前尚無{{ __('adminstaticword.SubscriptionPlans') }}

@endif @endif
@foreach($orders as $orderId => $order)
{{-- 訂單號 --}} {{-- 到期日 --}} {{-- 付款狀態 --}} {{-- 發票 --}} {{-- 查看更多 --}} @endforeach
{{ __('frontstaticword.OrderID') }} {{ __('frontstaticword.SubscriptionEndDate') }} {{ __('frontstaticword.PaymentStatus') }} {{ __('frontstaticword.Invoice') . __('adminstaticword.Number') }}號碼 {{ __('frontstaticword.More') }}
{{ $orderId }} @if ($order->enroll_expire) @if ( in_array( $order->status, [ 1, 2, 4, 6 ] ) )
{{ date('Y m/d', strtotime($order->enroll_expire)) }}
@endif @endif
@foreach ($status as $statusKey => $statusName) @if ($order->status == $statusKey) {{ $statusName }} @endif @endforeach
@if($order->invoice_no) @endif
@foreach ($couponUseds as $couponUsed) {{-- 訂單號 --}} {{-- 優惠碼 --}} {{-- 延展 / 折價 --}} @endforeach
{{ __('frontstaticword.OrderID') }} {{ __('frontstaticword.CouponCode') }} {{ __('frontstaticword.Extend') . '/' . __('frontstaticword.Discount') }}
{{ $couponUsed->order_id }}{{ $couponUsed->coupon->code }} @if($couponUsed->coupon->distype == 'fix') {{ __('frontstaticword.CouponCode') . $couponUsed->coupon->amount . __('frontstaticword.Dollar') }} @else {{ __('frontstaticword.Extend') . $couponUsed->coupon->amount . __('frontstaticword.Day') }} @endif
@endsection @section('custom-script') @endsection