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

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

{{ __('adminstaticword.From') }}: @if($show->course_id != NULL)
{{ $show->courses->user['fname'] }}
Address: {{ $show->courses->user['address'] }}
@if($show->courses->user['state_id'] == !NULL) {{ $show->courses->user->state['name'] }}, @endif @if($show->courses->user['country_id'] == !NULL) {{ $show->courses->user->country['name'] }} @endif
{{ __('adminstaticword.Phone') }}: {{ $show->courses->user['mobile'] }}
{{ __('adminstaticword.Email') }}: {{ $show->courses->user['email'] }}
@else
{{ $show->bundle->user['fname'] }}
{{ __('frontstaticword.address') }}: {{ $show->bundle->user['address'] }}
@if($show->bundle->user->state_id == !NULL) {{ $show->bundle->user->state['name'] }}, @endif @if($show->bundle->user->state_id == !NULL) {{ $show->bundle->user->country['name'] }} @endif
{{ __('frontstaticword.Phone') }}: {{ $show->bundle->user['mobile'] }}
{{ __('frontstaticword.Email') }}: {{ $show->bundle->user['email'] }}
@endif
{{ __('adminstaticword.To') }}:
@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') }}: {{ $show['order_id'] }}
{{ __('adminstaticword.TransactionId') }}: {{ $show['transaction_id'] }}
{{ __('adminstaticword.PaymentMethod') }}: {{ $show['payment_method'] }}
{{ __('adminstaticword.Currency') }}: {{ $show['currency'] }} {{ __('frontstaticword.PaymentStatus') }}: @if($show->status ==1) {{ __('adminstaticword.Recieved') }} @else {{ __('adminstaticword.Pending') }} @endif
{{ __('adminstaticword.Enrollon') }}: {{ date('jS F Y', strtotime($show['created_at'])) }}
@if($show->enroll_expire != NULL) {{ __('adminstaticword.EnrollEnd') }}: {{ date('jS F Y', strtotime($show['enroll_expire'])) }}
@endif
@if($show->proof != NULL) Download Proof
@endif
@if($show->coupon_discount != 0) @endif @if($show->coupon_discount != 0) @endif
{{ __('adminstaticword.Course') }} {{ __('adminstaticword.Instructor') }} {{ __('adminstaticword.Currency') }}{{ __('adminstaticword.CouponDiscount') }}{{ __('adminstaticword.Total') }}
@if($show->course_id != NULL) {{ $show->courses['title'] }} @else {{ $show->bundle['title'] }} @endif @if($show->course_id != NULL) {{ $show->courses->user['email'] }} @else {{ $show->bundle->user['email'] }} @endif {{ $show['currency'] }} (-) {{ $show['coupon_discount'] }} @if($show->coupon_discount == !NULL) {{ $show['total_amount'] - $show['coupon_discount'] }} @else {{ $show['total_amount'] }} @endif
@if($show->bundle_id != NULL) @foreach($show->bundle_course_id as $bundle_course) @php $coursess = App\Course::where('id', $bundle_course)->first(); @endphp
@if($coursess['preview_image'] !== NULL && $coursess['preview_image'] !== '') course @else course @endif
{{ $coursess->title }}
@endforeach @endif
@endsection @section('scripts') @endsection