@extends('admin.layouts.master') @section('title', 'View Order - Admin') @section('body')
@include('admin.message')

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


{{ __('adminstaticword.Name') }} : {{ $orderList->user->fname }}{{ $orderList->user->lname }}
@isset($orderList->user->mobile) {{ __('adminstaticword.Phone') }} : {{ $orderList->user->mobile }}
@endisset @isset($orderList->user->email) {{ __('adminstaticword.Email') }} : {{ $orderList->user->email }}
@endisset {{-- @if(Auth::user()->role == "admin") {{$show->user['fname'] }} {{$show->user['lname']}} @else @if($gsetting->hide_identity == 0) {{$show->user['fname'] }} {{$show->user['lname']}} @else Hidden @endif @endif

{{ __('adminstaticword.Address') }}: {{ $show->user['address'] }}
@if($show->user['state_id'] == !NULL) {{ $show->user->state['name'] }}, @endif @if($show->user['country_id'] == !NULL) {{ $show->user->country['name'] }}
@endif {{ __('adminstaticword.Phone') }}:  @if(Auth::user()->role == "admin") {{ $show->user['mobile'] }} @else @if($gsetting->hide_identity == 0) {{ $show->user['mobile'] }} @else Hidden @endif @endif
{{ __('adminstaticword.Email') }}:  @if(Auth::user()->role == "admin") {{ $show->user['email'] }} @else @if($gsetting->hide_identity == 0) {{ $show->user['email'] }} @else Hidden @endif @endif --}}

{{-- {{ __('adminstaticword.OrderID') }}: {{ $orderList['order_id'] }}
--}} {{ __('adminstaticword.TransactionId') }} : {{ $orderList->transaction_id }}
{{ __('adminstaticword.PaymentMethod') }} : {{ $orderList->payment_method }}
{{-- {{ __('frontstaticword.PaymentStatus') }}: @if( isset( $show::GET_ORDER_STATUS[ $show->status ] ) ) {{ $show::GET_ORDER_STATUS[ $show->status ] }} @else {{ $show->status }} @endif --}} @if($orderList->status != 5 ) {{ __('adminstaticword.Enrollon') }} : {{ $orderList->enroll_start }}
{{ __('adminstaticword.EnrollEnd') }} : {{ $orderList->enroll_expire }}
@endif @php $total_amount = 0; foreach ($show as $order) { $total_amount += (int)$order->total_amount; } @endphp {{ __('adminstaticword.TotalAmount') }} : {{$total_amount}}
{{-- @if($show->proof != NULL) Download Proof
@endif
--}}
{{-- GC_vic:2022-05-03 重新開立發票 --}} @if( !$orderList->invoice_no && in_array( $orderList->status, [ 1, 2, 4 ] ) && $orderList->payment_method != 'ios_pay' ) 手動開立發票
@endif @if( $orderList->invoice_no && ($orderList->invoice_status == 0) ) 手動作廢發票
@endif
@if($orderList->invoice_type) 發票類型 : @switch($orderList->invoice_type) @case(1) 電子發票 @break @case(2) 紙本二聯式 @break @case(3) 三聯式 @break @case(4) 捐贈發票 @break @endswitch @endif @if($orderList->carrier_type) 電子發票載具類型 : @switch($orderList->carrier_type) @case(1) 手機載具 @break @case(2) 自然人憑證 @break @endswitch @endif @if($orderList->carrier_number) 載具號碼 : {{ $orderList->carrier_number }} @endif @if($orderList->tax_number) 統一編號 : {{ $orderList->tax_number }} @endif @if($orderList->tax_company)
公司抬頭 : {{ $orderList->tax_company }} @endif @if($orderList->invoice_tax_email) 公司信箱 : {{ $orderList->invoice_tax_email }} @endif @if($orderList->donate_number) 捐贈單位編號 : {{ $orderList->donate_number }} @endif
紙本發票 : @if ($orderList->invoice_paper) 是 @else 否 @endif
@if( !is_null($orderList->invoice_status) ) 發票狀態 : @switch($orderList->invoice_status) @case(0) @if ($orderList->invoice_no) 開立 @else 開立失敗 @endif @break @case(2) @case(3) 作廢 @break @default @endswitch
@if( $orderList->invoice_no ) 發票號碼 : {{ $orderList->invoice_no }} @switch($orderList->invoice_status) @case(0) @if ($orderList->invoice_date ) 開立日期 : {{ $orderList->invoice_date }} @endif @break @case(2) @case(3) @if ($orderList->invoice_return_date) 作廢日期 : {{ $orderList->invoice_return_date }} @endif @break @default @endswitch
@endif @endif @if($orderList->invoice_error) {{ $orderList->invoice_error }} @endif @isset($orderList->check_order) @if($orderList->check_order == 1) {{ __('adminstaticword.Reconciliation') . __('adminstaticword.Success') }} @else {{ __('adminstaticword.Reconciliation') . __('adminstaticword.Failed') }} @endif @endisset
{{ csrf_field() }}
@if($orderList->order_note)
訂單備註:{{ $orderList->order_note }}
@endif
@if( !in_array($orderList->status, [3,5]) && $show->sum('nettAmount') + $show->sum('op_discount') > 0 )
{{ csrf_field() }}
@endif


@foreach($show as $order) @endforeach
{{ __('adminstaticword.OrderContent') }} 金額 {{ __('adminstaticword.CouponDiscount') }} 點數折抵 訂閱狀態
@if( isset( $order->subscription_plan ) ) @if( isset( $order->subscription_id ) ) {{ __('adminstaticword.SubscriptionPlans') }}:{{ $order->subscription_plan->name }} @elseif( isset( $order->plus_channel_id ) ) {{ __('adminstaticword.PrivateCourse') }}:{{ $order->plus_channel->name }} @endif @else 此訂單無效 @endisset @if($order->coupon_discount == !NULL) @if($gsetting['currency_swipe'] == 1) {{ $order['total_amount']}} @else {{ $order['total_amount']}} @endif @else @if($gsetting['currency_swipe'] == 1) {{ $order['total_amount'] }} @else {{ $order['total_amount'] }} @endif @endif @if($gsetting['currency_swipe'] == 1 && $order['coupon_discount']) -  {{ $order['coupon_discount'] }} @endif @if($gsetting['currency_swipe'] == 1 && $order['op_discount']) -  {{ $order['op_discount'] }} @endif
@foreach ($subscription_status as $value) @if ( in_array($order->status,$value['status'])) {{$value['name']}} @endif @endforeach
{{trans('adminstaticword.GC_TOP_NOTICE')}}
{{trans('adminstaticword.GC_SEC_NOTICE')}}
@endsection @section('scripts') @endsection