@extends('admin.layouts.master') @section('title','View Order') @section('maincontent') @include('admin.layouts.topbar',$data)
@if($setting->logo_type == 'L')
@else()
{{ $setting->project_title }}
@endif
{{ __('Invoice') }}
{{ __('Date') }}: {{ date('jS F Y', strtotime($show['created_at'])) }}
{{ __('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
  • {{ $show->courses->user['mobile'] }}
  • {{ $show->courses->user['email'] }}
@else
{{ $show->bundle->user['fname'] }}
  • {{ __('Back') }}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
  • {{ $show->bundle->user['mobile'] }}
  • {{ $show->bundle->user['email'] }}
@endif
{{ __('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
  • {{ __('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 @if(Auth::user()->role == "admin")
  • {{ $show->user['mobile'] }}
  • @else @if($gsetting->hide_identity == 0)
  • {{ $show->user['mobile'] }}
  • @else {{ __('Hidden') }} @endif @endif @if(Auth::user()->role == "admin")
  • {{ $show->user['email'] }}
  • @else @if($gsetting->hide_identity == 0)
  • {{ $show->user['email'] }}
  • @else {{ __('Hidden') }} @endif @endif
{{ __('Order ID') }}: {{ $show['order_id'] }}
{{ __('Transaction ID') }}: {{ $show['transaction_id'] }}
{{ __('Payment Method') }}: {{ $show['payment_method'] }}
{{ __('Currency') }}: {{ $show['currency'] }} {{ __('Payment Status') }}: @if($show->status ==1) {{ __('Received') }} @else {{ __('Pending') }} @endif
{{ __('Enroll On') }}: {{ date('jS F Y', strtotime($show['created_at'])) }}
@if($show->enroll_expire != NULL) {{ __('Enroll Expire') }}: {{ date('jS F Y', strtotime($show['enroll_expire'])) }}
@endif
@if($show->proof != NULL) {{ __('Download Proof') }}
@endif
@if($show->coupon_discount != 0) @endif @php $contains = Illuminate\Support\Str::contains($show->currency_icon, 'fa'); @endphp @if($show->coupon_discount != 0) @endif
{{ __('Course Name') }} {{ __('Instructor Name') }} {{ __('Currency') }}{{ __('Coupon Discount') }}{{ __('Total Amount') }}
@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'] }} @if($contains) (-) {{ $show['coupon_discount'] }} @else (-) {{ $show['currency_icon'] }} {{ $show['coupon_discount'] }} @endif @if($show->coupon_discount == !NULL) @if($contains) {{ $show['total_amount'] - $show['coupon_discount'] }} @else {{ $show['currency_icon'] }} {{ $show['total_amount'] - $show['coupon_discount'] }} @endif @else @if($contains) {{ $show['total_amount'] }} @else {{ $show['currency_icon'] }} {{ $show['total_amount'] }} @endif @endif
@if($show->bundle_id != NULL) @foreach($bundle_order->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