{{-- @include('admin.message') --}}
{{--
--}}
{{--

{{ __('adminstaticword.Order') }}

--}} {{--GC_minos:先隱藏手動新增訂單的功能@if (Auth::User()->role == 'admin') + Enroll User @endif--}}
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @foreach ($orders as $orderNumber => $order) {{-- GC_vic:發票資訊 --}} {{-- --}} {{-- 消費日期 --}} {{-- 金額 --}} {{-- 2021-11-23 修改訂單狀態欄位 --}} {{-- --}} @php $orderNumber = substr($orderNumber, 1); @endphp {{-- --}} {{-- --}} {{-- --}} @endforeach
{{ __('adminstaticword.OrderNumber') }} {{ __('adminstaticword.User').__('adminstaticword.Name') }}
{{ __('adminstaticword.User').__('adminstaticword.Phone') }}
{{ __('adminstaticword.User').__('adminstaticword.Email') }}
OP{{ __('adminstaticword.User').__('adminstaticword.Number') }} {{ __('adminstaticword.OrderContent') }} {{ __('adminstaticword.Cost').__('adminstaticword.Date') }}{{ __('adminstaticword.Invoice') }}{{ __('Payment') }} {{ __('adminstaticword.Detail') }}{{ __('adminstaticword.PaymentMethod') }}訂單費用 {{ __('adminstaticword.Order').__('adminstaticword.Status') }} {{ __('adminstaticword.Reconciliation').__('adminstaticword.Status') }} 是否首購 {{ __('adminstaticword.View') }}{{ __('adminstaticword.SubscriptionStatus') }}{{ __('adminstaticword.Unenroll') }}{{ __('adminstaticword.Delete') }}
{{ $orderNumber }}

@if(Auth::user()->role == 'admin') @if(isset($order->user)) {{ name_mask($order->user['fname']) }}
{{ phone_mask($order->user['mobile']) }}
{{ email_mask($order->user['email']) }} @endif @else @if ($gsetting->hide_identity == 0) @if(isset($order->user)) {{ $order->user['fname'] }} @endif @else Hidden @endif @endif

@if(Auth::user()->role == 'admin') @if(isset($order->user['op_id'])) {{ $order->user['op_id'] }} @endif @endif

@isset( $order->subscription_plan ) {{ __('adminstaticword.SubscriptionPlans') }} : {{ $order->subscription_plan->name }}
@else 此訂單無效 @endisset @if( isset($order->child_order) && count($order->child_order) ) {{ __('adminstaticword.PrivateCourse') }} :
@foreach ($order->child_order as $child) {{ $child->plus_channel ? $child->plus_channel->name : '' }}
@endforeach @endif @isset($order->plus_channel_id) {{ __('adminstaticword.PrivateCourse') }} : {{ $order->plus_channel ? $order->plus_channel->name : '' }} @endisset {{-- {{ __('adminstaticword.TotalAmount') }}: @if ($order->coupon_discount == !null) @if($gsetting['currency_swipe'] == 1) {{ $order->total_amount - $order->coupon_discount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @else {{ $order->total_amount - $order->coupon_discount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @endif @else @if($gsetting['currency_swipe'] == 1) {{ $order->total_amount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @else {{ $order->total_amount }} @if ($order->subscription_id !== null) / {{ $order->bundle->billing_interval }} @endif @endif @endif

--}}
@if( $order->invoice_no != '' )

{{ __('adminstaticword.Number') }}: {{ $order->invoice_no }}

{{ __('adminstaticword.Date') }}: {{ $order->invoice_date }}

{{ $order->invoice_error }}

@else

尚未開立發票

@endif
@if ($order->status != 0 || $order->status != 3 || $order->status != 5) {{ $order->created_at}} @endif @php $current_order = \App\Order::where( 'order_id', $orderNumber )->get(); @endphp {{$current_order->sum('nettAmount');}} @foreach ($orderStatus as $key => $value) @if ($key == $order->status) {{ $value }} @endif @endforeach {{--
{{ csrf_field() }}
--}}
{{ csrf_field() }}
@isset($order->check_order) @if($order->check_order == 1) {{ __('adminstaticword.Reconciliation') . __('adminstaticword.Success') }} @else {{ __('adminstaticword.Reconciliation') . __('adminstaticword.Failed') }} @endif @else {{ __('adminstaticword.UnReconciliation') }} @endisset @if ($order->first_purchase) 是 @else 否 @endif {{ __('adminstaticword.View') }} @if ($order->bundle_id != null) @if ($order->subscription_status == 'active') {{ __('adminstaticword.Active') }} @else {{ __('adminstaticword.Canceled') }} @endif @else - @endif @if ($order->subscription_status === 'active')
{{ csrf_field() }}
@else - @endif
{{ csrf_field() }} {{ method_field('DELETE') }}
{{ $orders->links() }}
{{--
--}}